Commit graph

366 commits

Author SHA1 Message Date
jmdavis
71546f33a0 Workaround for issue# 12961. 2014-06-22 13:33:51 -07:00
jmdavis
c800058aca Move along some overdue deprecations. 2014-06-20 04:37:13 -07:00
jmdavis
7f5b1b2ff3 Remove std.traits.unsigned as scheduled. 2014-06-20 02:35:57 -07:00
Justin Whear
98e23d334c Fix #12806
Documentation improvement for `std.traits.isArray` to clarify whether
associative arrays are handled.

Fixes #12806
2014-06-06 09:00:06 -07:00
Dmitry Olshansky
c496463339 Merge pull request #2203 from monarchdodra/isSomeString
Constrain isSomeString
2014-05-31 04:10:42 -07:00
monarchdodra
e2e3a70a62 Constrain isSomeString 2014-05-25 17:43:42 +02:00
Andrej Mitrovic
2955301d81 Add some missing docs to std.traits. 2014-05-24 22:19:48 +02:00
monarchdodra
001fad4558 Remove trailing whitespaces 2014-05-17 15:35:25 +02:00
Walter Bright
54836250d7 Merge pull request #1391 from TurkeyMan/simd-traits
Added support for simd primitives to std.traits.Signed/Unsigned
2014-05-11 19:30:48 -07:00
k-hara
2c1a8f8eaf Supplemental fix for issue 7469 2014-05-10 02:39:53 +09:00
Manu Evans
33aa546ea3 Added isSIMDVector, support for SIMD primitives to std.traits.Signed/Unsigned, and fullyQualifiedName 2014-05-10 01:47:01 +10:00
monarchdodra
d609bd332f Sed "@safe pure nothrow" 2014-05-06 08:21:13 +02:00
Andrej Mitrovic
c61c1232b9 Merge pull request #2070 from monarchdodra/hasIndirections
Re-implement hasIndirections
2014-04-26 01:54:00 +02:00
Walter Bright
0c945e2627 @nogc for builtin functions 2014-04-23 02:27:54 -07:00
monarchdodra
bc1876626b Re-implement hasIndirections
Avoids requesting the RepresentationTypeTuple of T unless really needed.

Partially solves 12000:
https://d.puremagic.com/issues/show_bug.cgi?id=12000

Fix Issue 12000 - Forward reference issue with RefCounted
2014-04-05 17:59:32 +02:00
Dmitry Olshansky
a8c60a9cdb Clarify DDoc of hasElaborateAssign
Split the overly long sentence in two, otherwise
it's easy to miss the point about auto-generation.
2014-03-29 15:50:03 +04:00
Andrej Mitrovic
6c38d569c8 Fixes Issue 12356 - Add better documentation and add examples for isTypeTuple and isExpressionTuple. 2014-03-13 13:54:28 +01:00
Andrei Alexandrescu
b0aabc6c93 Merge pull request #1978 from 9rnsr/fix12287
Issue 12287 - infinite loop on std.traits.moduleName on templated struct member
2014-03-09 23:01:12 -07:00
k-hara
d9aa953c50 fix Issue 12309 - The template fullyQualifiedName returns wrong result 2014-03-07 18:22:05 +09:00
k-hara
a4aa5d8a15 fix Issue 12287 - infinite loop on std.traits.moduleName on templated struct member 2014-03-07 18:21:55 +09:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
k-hara
2c67d9a71a fix Issue 10502 - Can't get fullyQualifiedName of a templated struct 2014-02-27 17:56:49 +09:00
k-hara
c6d5d7350c [Refactoring] Make helper template names short 2014-02-27 17:56:47 +09:00
k-hara
768907aea8 Add a test case isAssignable!(void[1], void[1]) 2014-02-11 18:36:40 +09:00
k-hara
f822e7a893 Remove package function defaultInit
It was a hack for the compiler bugs around T.init. Now the they are properly fixed, so the unused helper function is actually unnecessary.
2014-02-11 18:35:08 +09:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
k-hara
2763ee1466 fix Issue 12089 - std.utf.validate and inout(char[]) failts to compile
Unqual should support inout(const(T))
2014-02-10 23:29:28 +09:00
Hara Kenji
e6e323175d Merge pull request #1884 from Poita/bug5361
Fix Issue 5361 - Add TemplateOf and TemplateArgsOf
2014-02-07 04:16:53 +09:00
monarch dodra
67a4ad1f69 Merge pull request #1869 from GoldMax/Issue-7069
The std.traits.ImplicitConversionTargets returns wrong result for dchar
2014-01-31 04:11:11 -08:00
k-hara
8191aa91e5 Fixed typo. 2014-01-31 19:48:37 +09:00
k-hara
b7ad077356 Fix for enum and alias this cases 2014-01-31 13:07:44 +09:00
k-hara
c68cb5dc6c Move isBlitAssignable to std.traits 2014-01-31 13:07:33 +09:00
Peter Alexander
db88295013 Fix Issue 5361 - Add TemplateOf and TemplateArgsOf
Examples:

```d
struct Foo(A, B) {}
alias Bar = Foo!(int, real);
static assert(__traits(isSame, TemplateOf!Bar, Foo));
static assert(is(TemplateArgsOf!Bar == TypeTuple!(int, real)));
```

https://d.puremagic.com/issues/show_bug.cgi?id=5361
2014-01-26 13:11:13 +00:00
Alex Rønne Petersen
5b1aa8bf45 Merge pull request #1861 from jpf91/arm-3
[ARM] Fix phobos unit tests
2014-01-25 07:27:41 -08:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
GoldMax
12f233ae31 some fix in std.traits.ImplicitConversionTargets 2014-01-17 17:00:50 +07:00
GoldMax
dbf868ecc4 The std.traits.ImplicitConversionTargets returns wrong result for dchar 2014-01-17 13:22:38 +07:00
Ferdinand Majerech
1f2681e3b7 DDoc: elaborated on 'scalar type' and 'basic type'
Previously it wasn't completely obvious what a scalar or basic type is in std.traits; now it's described explicitly.
2014-01-16 20:45:56 +01:00
Johannes Pfau
8b124e461c [ARM] Fix phobos unit tests 2014-01-15 16:31:25 +01:00
Andrei Alexandrescu
dab1796ad6 Merge pull request #1827 from WalterBright/add-opCmp
fix unittest associative array opCmp
2014-01-01 00:00:44 -08:00
Walter Bright
e0ecdf904b fix unittest associative array opCmp 2013-12-31 23:53:35 -08:00
monarchdodra
4615b40868 Reduce imports in std.traits 2013-12-29 22:31:51 +01:00
k-hara
6628a306cf Add more necessary local imports 2013-12-26 11:55:18 +09:00
k-hara
baf5c78deb Use selective local import and place at the head of the required code block 2013-12-26 11:55:06 +09:00
Andrei Alexandrescu
567a43157c Reduce deps in std.traits 2013-12-19 17:04:35 -08:00
Martin Nowak
c445f1c288 Merge pull request #1766 from jmdavis/deprecations
Move various deprecations along.

Conflicts:
    std/algorithm.d
    std/zip.d
2013-12-19 23:33:47 +01:00
k-hara
a047e5052c Fix for nested alias this. 2013-12-16 11:55:38 +09:00
k-hara
43447a5451 Use __traits.d(getAliasThis) 2013-12-16 11:55:36 +09:00
Daniel Murphy
1818d190b5 More implicit array to bool 2013-12-15 19:55:34 +11:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00