Commit graph

352 commits

Author SHA1 Message Date
Walter Bright
0c945e2627 @nogc for builtin functions 2014-04-23 02:27:54 -07: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
Daniel Murphy
9562429379 Result of __traits(parent) may not have a type 2013-11-25 23:27:49 +11:00
Andrej Mitrovic
c2c95ca991 Merge pull request #1165 from andralex/5410
Fix Issue 5410 - Variant.convertsTo(const(char)[]) seems broke
2013-10-24 14:14:30 -07:00
Andrej Mitrovic
5756025d64 Merge pull request #1222 from 9rnsr/categorize_traits
Add category table in std.traits
2013-10-24 13:49:53 -07:00
monarchdodra
8751ccfb0c Revert "Fix for issue 11108"
This reverts commit c930d8bd5e.
2013-10-12 13:40:27 +02:00
monarch dodra
9c393a88f6 Merge pull request #1622 from denis-sh/fix-std.traits-eol-fixup-pull-1261
[Whitespace] Fix CRLF EOLs in `std.traits`.
2013-10-09 07:05:15 -07:00
Denis Shelomovskij
c930d8bd5e [Workaround] Disable some tests because of Issue 11202.
Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=11202
2013-10-09 11:54:33 +04:00
Denis Shelomovskij
2e75d66c6e Fix pull #1598. 2013-10-09 11:53:40 +04:00
Denis Shelomovskij
bf640ea8bc Revert "Merge pull request #1621 from monarchdodra/undoHasElaborate"
This reverts commit 2f65b41d41, reversing
changes made to 561d266f48.
2013-10-09 11:39:47 +04:00
Denis Shelomovskij
9a18458d50 [Whitespace] Fix CRLF EOLs in std.traits.
CRLF EOLs were introduced in ea72723850 commit of pull #1261.
2013-10-09 11:31:25 +04:00
monarchdodra
396d629120 Revert "Fix Issue 11108 - hasElaborateAssign should check whether the type is assignable"
This reverts commit e82724d740d223b52be2800eeec8d5ed4f673dfb.
2013-10-09 08:10:37 +02:00
Andrei Alexandrescu
561d266f48 Merge pull request #1598 from denis-sh/fix-Issue-11108
Fix Issue 11108 - `hasElaborateAssign` should check whether the type is assignable
2013-10-08 21:50:56 -07:00
Denis Shelomovskij
8e8524a9a8 Clarify isAssignable documentation. Add private isRvalueAssignable and isLvalueAssignable.
Previously `isAssignable` worked like `isLvalueAssignable`.

Also add some unittests.
2013-10-08 21:11:09 +04:00
Denis Shelomovskij
7ed5b543bb [Refactor] Remove redundant parantheses in std.traits.isAssignable unittest. 2013-10-03 01:55:44 +04:00
Denis Shelomovskij
0b7f67e8b0 Use documented unittests for std.traits.isAssignable. 2013-10-03 01:55:44 +04:00