Commit graph

229 commits

Author SHA1 Message Date
Andrei Alexandrescu
f12c860a23 Merge pull request #896 from denis-sh/std.conv.emplace-fixes
`std.conv.emplace` fixes & improvements
2012-12-12 07:41:03 -08:00
k-hara
afed048033 fixup for pull #1301 and #1309
By fixing bug 9069 and 9035, T.init always returns rvalue and ref cannot receive it.
2012-12-04 14:40:13 +09:00
k-hara
0f8e87b342 fix isPointer 2012-11-27 22:46:23 +09:00
k-hara
6d53de5893 fix isBuiltinType and BuiltinTypeOf 2012-11-27 22:46:21 +09:00
k-hara
fa61476205 fix isAssociativeArray 2012-11-27 22:46:20 +09:00
k-hara
eea23bda23 fix isArray 2012-11-27 22:46:19 +09:00
k-hara
158275cda9 fix isDynamicArray and DynamicArrayTypeOf 2012-11-27 22:46:18 +09:00
k-hara
965fc86820 fix isStaticArray 2012-11-27 22:46:16 +09:00
k-hara
1f62b9ec9f fix isNarrowString 2012-11-27 22:46:15 +09:00
k-hara
d31e45ac28 fix isSomeString and StringTypeOf
additionally DynamicArrayTypeOf and StaticArrayTypeOf considers enums based on arrays
2012-11-27 22:46:12 +09:00
k-hara
108761f273 fix isSomeChar and CharTypeOf 2012-11-27 22:46:11 +09:00
k-hara
fcbb1bef2b fix isBasicType 2012-11-27 22:46:09 +09:00
k-hara
0e09d72b34 fix isScalarType 2012-11-27 22:46:07 +09:00
k-hara
6e67956903 fix isUnsigned/isSigned and Unsigned/Signed 2012-11-27 22:14:18 +09:00
k-hara
a16920f2de fix isNumeric and NumericTypeOf 2012-11-27 22:10:39 +09:00
k-hara
9f98163968 fix isFloatingPoint and FloatingPointTypeOf 2012-11-27 22:10:28 +09:00
k-hara
0c88d6ffc4 fix isIntegral and IntegralTypeOf 2012-11-27 22:10:19 +09:00
k-hara
8a60edd140 fix isBoolean and BooleanTypeOf 2012-11-27 22:10:16 +09:00
Alex Rønne Petersen
cc9461baa8 Merge pull request #970 from AndrejMitrovic/Fix9064
Fixes Issue 9064 - Add isInstanceOf trait
2012-11-24 09:56:11 -08:00
Andrej Mitrovic
e02593090a Fixes Issue 9064 - Add isInstanceOf trait. 2012-11-23 14:58:41 +01:00
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