Commit graph

259 commits

Author SHA1 Message Date
k-hara
2aee10e789 Stop fwdref by the immutable field 2012-11-22 09:58:32 +09:00
Ellery Newcomer
4a8ef27691 give ParameterIdentifierTuple and ParameterDefaultValueTuple ddoc comments 2012-11-14 17:28:29 -08:00
Walter Bright
f76ea73eff Merge pull request #926 from 9rnsr/fix8923
Supplemental fix for Issue 8923
2012-11-06 20:31:52 -08:00
k-hara
585f5a3a3d fix Issue 8923 - Destructors of struct members get called at the wrong point 2012-11-05 18:27:08 +09:00
Walter Bright
d8cc0025ab Merge branch 'master' of github.com:D-Programming-Language/phobos 2012-11-04 13:59:30 -08:00
Walter Bright
49cbab43c2 enhance __traits(identifier) to pick the identifier out of a parameter list tuple 2012-11-04 13:58:11 -08:00
Denis Shelomovskij
0511b07cfa Fix typo in ddoc comment 2012-11-04 00:30:52 +04:00
Denis Shelomovskij
16d919ae1b Remove rest redundant parenthesis from std.traits
* replace with VS regex: "!\({:i}\)" -> "!\1"
2012-10-31 21:59:09 +04:00
Denis Shelomovskij
c97ea408f0 Refactor std.traits.fullyQualifiedName using CTFE 2012-10-31 21:59:09 +04:00
Denis Shelomovskij
5747da9f49 Refactor std.traits.fullyQualifiedName and its unittests 2012-10-31 21:59:09 +04:00
Denis Shelomovskij
acb48634bd Add more std.traits.moduleName unittests 2012-10-31 21:59:09 +04:00
Denis Shelomovskij
cc8982d986 Refactor std.traits.moduleName and its unittests 2012-10-31 21:59:09 +04:00
Denis Shelomovskij
f173f980df Add more std.traits.packageName unittests
* some of the unittests are commented out because of the Issue 8922
* Issue 8922 URL: http://d.puremagic.com/issues/show_bug.cgi?id=8922
2012-10-31 21:59:09 +04:00
Denis Shelomovskij
303ca7c6b7 Refactor std.traits.packageName and its unittests 2012-10-31 21:27:48 +04:00
Denis Shelomovskij
60a1e79c5c Fix std.traits.hasElaborateCopyConstructor static arrays issue and improve unittests
* the issue is that static arrays can also have elaborate copy constructors
* unittests are merged from `hasElaborateDestructor` ones
2012-10-31 21:27:48 +04:00
Denis Shelomovskij
579a346d2c Improve std.traits.hasElaborateDestructor unittests 2012-10-31 21:27:33 +04:00
Denis Shelomovskij
8417ac1c4c Simplify std.traits.hasElaborateCopyConstructor 2012-10-31 02:06:20 +04:00
SHOO
080a3f3188 Enhancement of hasUnsharedAliasing for void delegate() shared
- hasAliasing supports `void delegate() immutable`
- hasAliasing supports `immutable(void delegate())`
- hasUnsharedAliasing supports `void delegate() shared` and `void delegate() immutable`
- hasUnsharedAliasing supports `immmutable(void delegate())`
- Add some unittest cases.
2012-10-31 00:34:32 +09:00
Denis Shelomovskij
98061d298e Create std.traits.classInstanceAlignment 2012-10-27 10:23:26 +04:00
Andrej Mitrovic
25d9fa021c Fixes Issue 8050 - Add missing asterisk in ddoc comment. 2012-10-27 05:17:28 +02:00
k-hara
f7f33b0cf7 Improve isAssignable to support identity assignable check. 2012-10-06 14:37:59 +09:00
monarch dodra
191dc5f5c6 Revert unqual for AA 2012-10-06 00:16:04 +03:00
Andrei Alexandrescu
4bd36016e2 Merge pull request #822 from monarchdodra/unqual
fix issue 8737 Unqual for AA
2012-10-04 11:55:53 -07:00
Hara Kenji
89ee7f43c5 Merge pull request #832 from denis-sh/fix-Issue-8747
Fix Issue 8747 - isAssignable!(int, const(int)) is false
2012-10-04 07:11:47 -07:00
Denis Shelomovskij
8e72e3922e Fix hasElaborateAssign docs typo 2012-10-04 09:50:05 +04:00
Denis Shelomovskij
f30660baa6 Fix Issue 8747 - isAssignable!(int, const(int)) is false 2012-10-04 09:34:29 +04:00
Denis Shelomovskij
4d2f24d04c Improve std.traits unittests
* improve `isAssignable` unittests
* add immutable(S) test to `hasElaborateCopyConstructor`
* add const(S) test to `hasElaborateAssign`
2012-10-04 09:29:53 +04:00
Dicebot
25282b2c84 Current check for additional parents uses "is(typeof())" and thus types given as a parameter are nor fully qualified, nor rejected. Changed this to more generic __trait(compiles) to allow wider usage as same implementation applies. 2012-10-04 01:04:18 +03:00
monarch dodra
dabb0343ba fix issue 8737 Unqual for AA 2012-10-01 11:00:51 +02:00
k-hara
4a05464800 fix Issue 8339 - is(typeof(...)) is reporting true when it's false due to nested function error
Avoid frame access check and disabled default construction in predicate templates.
2012-08-18 17:49:05 +09:00
k-hara
c6dc1711c4 fix template constraints 2012-08-06 01:05:06 +09:00
k-hara
5daf79cbe3 fix Issue 8508 - std.traits.isSomeString no longer works with enums 2012-08-06 01:04:24 +09:00
k-hara
cedddcd23e fix Issue 5939 - Cannot copy std.algorithm.map
Move out Voldemort types to modle level.
2012-07-31 00:30:07 +09:00
jmdavis
9ca21ef2e7 Fix for issue# 8459.
isTrusted and isSafelyCallable have been removed. isSafe now checks for
both @safe and @trusted again (but correctly now).
2012-07-28 17:15:32 -07:00
jmdavis
e169f5dfae Fix for issue# 8362.
"std.traits.isSafe doesn't work with unsafe lamdba functions"
2012-07-27 13:06:58 -07:00
jmdavis
02931eb501 Revert "Merge pull request #664 from denis-sh/add-ArrayTarget-template"
This reverts commit f4d0a49493, reversing
changes made to 3cb69914c5.

The merging of request #664 was accidental, and it should not have been
merged. See https://github.com/D-Programming-Language/phobos/pull/664
for details.
2012-07-11 11:49:28 -07:00
jmdavis
830f3b05a8 Removed tabs and trailing whitespace. 2012-07-10 23:27:21 -07:00
Andrei Alexandrescu
9efd0ed4a4 Merge pull request #643 from gchatelet/traits_arity
Adding arity traits
2012-07-09 12:28:35 -07:00
Guillaume Chatelet
2271113a55 changing uint to size_t 2012-07-09 21:14:55 +02:00
Guillaume Chatelet
75f99e25c7 discarding variadic functions 2012-07-06 22:20:45 +02:00
Denis Shelomovskij
00c0d61403 Replace typeof(<type>.init[0]) with templates
* ArrayTarget (12)
2012-07-06 13:38:06 +04:00
Denis Shelomovskij
564dab300e Add ArrayTarget template 2012-07-06 13:31:48 +04:00
k-hara
9f5c180b66 Disable test for bug 8231 temporarily. 2012-07-02 14:12:03 +09:00
Andrei Alexandrescu
7c1ee23a1e Merge pull request #658 from 9rnsr/parameterTraits
Add ParameterIdentifierTuple and ParameterDefaultValueTuple.
2012-07-01 21:40:52 -07:00
k-hara
c8daf36623 Add ParameterIdentifierTuple and ParameterDefaultValueTuple. 2012-07-01 20:53:50 +09:00
k-hara
2a1012a146 fix Issue 8321 - std.range.put doesn't work with RefCounted output range 2012-07-01 01:27:56 +09:00
Guillaume Chatelet
34e998889a Adding arity traits 2012-06-22 23:26:05 +02:00
k-hara
230f56cf26 Stop using auto ref to distinguish lvalue and rvalue. 2012-06-20 11:04:38 +09:00
Jonathan M Davis
9d0e3f9ca5 Merge pull request #611 from jmdavis/traits
Some tweaks to unsigned.
2012-06-11 02:15:42 -07:00
k-hara
ec773717bb Add author 2012-05-31 19:24:39 +09:00