Commit graph

540 commits

Author SHA1 Message Date
Per Nordlöw
93e302ba98 Compacter definition of isSigned including extra unittests 2017-01-25 19:07:50 +01:00
Per Nordlöw
51fbf1765a Compacter definition of of isScalarType including extra unittest that passes old and a new 2017-01-25 19:07:50 +01:00
Per Nordlöw
742024dc3d Compacter definition of isFinalFunction 2017-01-25 19:07:50 +01:00
Per Nordlöw
5239d032ff Compacter definition of isFinalClass 2017-01-25 19:07:50 +01:00
Per Nordlöw
155a701f1c Compacter definition of isAbstractFunction 2017-01-25 19:07:50 +01:00
Per Nordlöw
a07517abae Use builtin trait isArithmetic in isNumeric 2017-01-25 19:07:50 +01:00
Per Nordlöw
5a4e4622a9 Compacter definition of isAbstractClass 2017-01-25 19:07:49 +01:00
Per Nordlöw
ba75a3b1c9 Use builtin trait isFloating in isFloatingPoint 2017-01-25 19:07:49 +01:00
Per Nordlöw
72b2c24649 Use builtin trait isUnsigned 2017-01-25 19:07:49 +01:00
Per Nordlöw
d53ee9fc5c Add note about using builtin trait isScalar 2017-01-25 19:07:49 +01:00
Per Nordlöw
5ba527335e Use builtin trait isAssociativeArray 2017-01-25 19:07:49 +01:00
Per Nordlöw
3d79925e03 Use builtin trait isStaticArray 2017-01-25 19:07:49 +01:00
Nick Treleaven
8ada2b7a50 Tweak std.traits function-related docs
Also fix order of constraint tests.
2017-01-13 07:28:14 +01:00
Adam D. Ruppe
5febcef466 better workaround for issue 16653, fix ketmar comment 2017-01-06 10:11:41 -05:00
Sebastian Wilzbach
970dff3bef std.traits: hasFunctionAttributes 2017-01-04 15:26:46 +01:00
somzzz
48398dbd0f fix issue 16653 2016-12-20 04:27:50 -08:00
Andrei Alexandrescu
3fec190b7f Merge pull request #4916 from Darredevil/issue-16611
Fix Issue 16611 - 'Unrecognized type const(void)' error for std.trait…
2016-11-22 16:36:12 -05:00
Alexandru Razvan Caciulescu
a636bb6bb0 Fix Issue 16611 - 'Unrecognized type const(void)' error for std.traits.fullyQualifiedName 2016-11-22 04:29:33 +02:00
Martin Nowak
26a6857e7b Merge pull request #4889 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-11-21 00:19:08 +01:00
Martin Nowak
0f5b131d0a Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
        std/traits.d
2016-11-05 12:15:09 +01:00
Ryan Roden-Corrent
10cd84a5c0 Improve isConvertibleToString docs.
Clarify that it works for enums and add more unittest examples.
2016-10-30 19:02:22 -04:00
Ryan Roden-Corrent
5f346e49dc Document isConvertibleToString.
It was public but undocumented.
2016-10-30 18:57:12 -04:00
Ryan Roden-Corrent
0a685f1daf Ensure std.file.exists(StringEnum.name) compiles.
A string-typed enum passes isSomeString but not isConvertibleToString.
Because isConvertibleToString is used as a template constraint for
std.file.exists, it could not be passed a string-typed enum.

Resolves #16573.
2016-10-30 18:57:11 -04:00
Jack Stouffer
d999c773a1 Merge pull request #4419 from tsbockman/more_traits
Add `Promoted` to `std.traits`.
2016-10-25 18:04:26 +01:00
Steven Schveighoffer
c5d94717b9 Merge pull request #4862 from MartinNowak/parameter_defaults_cruft
remove ParameterDefaults cruft
2016-10-17 08:28:39 -04:00
Martin Nowak
f783d975a2 fix Issue 16582 - ParameterDefaults fails w/ scope parameter
- workaround scope escape error to get default parameter
- would require a working `return scope` for a proper implementation
2016-10-16 01:36:27 +02:00
Martin Nowak
c5c1360259 remove unused branch
- variadic template parameters cannot be a function (always need to use func[0])
2016-10-15 16:49:39 +02:00
Martin Nowak
ac7cc674c1 no need to use parameter names to get defaults 2016-10-15 16:49:39 +02:00
Martin Nowak
e46cc8ea25 remove spurious x identifier in IsExp
- gets parsed as is(Type Identifier) but an alias identifier isn't needed
- fixup of ee683ae79f (#2624)
2016-10-15 16:30:26 +02:00
tsbockman
8711a1134d Add Promoted to std.traits. 2016-10-10 12:31:27 -07:00
Walter Bright
55e5737525 add 'scope' to opApply() parameter 2016-09-14 19:41:41 -07:00
Walter Bright
63811e9aeb replace binary literals with hex 2016-09-13 15:32:50 -07:00
Andrei Alexandrescu
cb09746cb1 Merge pull request #4706 from SealabJaster/issue_16168
Issue 16168 - isCopyable trait for value types
2016-08-30 07:44:24 -04:00
Andrei Alexandrescu
49833864d5 Merge pull request #4739 from aG0aep6G/isInstanceOf-for-non-types
implement std.traits.isInstanceOf for non-types
2016-08-30 07:31:45 -04:00
togrue
b44e3bd24a Fixed Issue 16387
(getSymbolsByUDA works with structs but fails with classes)

- added a filter to skip the inaccessable 'this' member
2016-08-29 20:14:30 +02:00
anonymous
a0247166a7 implement std.traits.isInstanceOf for non-types 2016-08-18 22:52:21 +02:00
Lodovico Giaretta
b96a330b77 fix issue 16319 2016-08-15 21:02:30 +02:00
SealabJaster
f7d26c5715 Issue 16168 - isCopyable trait for value types 2016-08-15 11:04:18 +01:00
Andrei Alexandrescu
c38d0d11f2 Merge pull request #4650 from lodo1995/trait_is_inner_class
New trait std.traits.isInnerClass
2016-08-15 00:53:46 -04:00
Jonathan M Davis
29470ebb3c Fix issue# 16364. Make getUDAs and hasUDA consistent. 2016-08-08 07:01:36 -07:00
Ilya Yaroshenko
f75eeb596d Merge pull request #4437 from puneet/master
Fix for for issue 16182 - std.traits.fullyQualifiedName Bug
2016-07-29 15:40:40 +02:00
Lodovico Giaretta
ebb74d5fc0 Better documentation 2016-07-25 20:19:50 +02:00
Lodovico Giaretta
a44527ac94 Removed extra spacing 2016-07-25 01:05:24 +02:00
Lodovico Giaretta
33f813a3ce Fixed spacing around colon in selective import 2016-07-24 23:20:49 +02:00
Lodovico Giaretta
0ecc0868f2 Implemented isInnerClass trait 2016-07-24 23:08:02 +02:00
Jonathan M Davis
1add09c180 Move deprecations along. 2016-07-18 14:56:03 -07:00
Atila Neves
ca0adc1141 Add @system and @safe to std.traits unit tests 2016-07-10 14:19:02 +02:00
Dmitry Olshansky
fbccadbc5e Merge pull request #4543 from Geod24/correct-opassign
Issue 16142 - Enable test for disabled recursive identity opAssign
2016-07-03 18:27:54 +02:00
Geod24
dbb412d49c Issue 16142 - Enable test for disabled recursive identity opAssign 2016-07-03 05:39:42 +02:00
Walter Bright
4dabad58a3 std.traits: fix return ref 2016-07-02 18:59:12 -07:00