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
Walter Bright
1eb9c55a8c
std.traits: scope is only for types with pointers
2016-07-01 03:38:45 -07:00
Steven Schveighoffer
fd61e2adf5
Merge pull request #4479 from WalterBright/traitsinfer
...
std.traits: prevent inference of attributes of test cases
2016-06-27 08:32:06 -04:00
Walter Bright
48bdb3538e
std.traits: prevent inference of attributes of test cases
2016-06-27 03:23:16 -07:00
Robert Schadek
ff7c3691e3
Merge pull request #3936 from JackStouffer/traits
...
New Traits for std.traits
2016-06-20 22:54:57 +02:00
Jack Stouffer
dea43f818e
Add new traits
...
Added traits isType, isFunction, isPropertyFunction, and isFinal
2016-06-20 16:00:42 -04:00
Puneet Goel
59df244abb
Fix for issue 16182
...
https://issues.dlang.org/show_bug.cgi?id=16182
It is beyond my comprension as to why this irrelevant change helps
fixes #16182 . I believe there is something amiss becuase expression
fqnSym!(__traits(parent, T)) ~ '.' is returning a char[] while
fqnSym!(__traits(parent, T)) ~ "." returns a string. This while
expression fqnSym!(__traits(parent, T)) returns a string.
2016-06-19 17:18:03 +05:30
Andrei Alexandrescu
a26026478c
Merge pull request #4421 from mathias-lang-sociomantic/dmd-pr-5854
...
Issue 16142: Correct test for hasElaborateAssign
2016-06-18 04:01:02 -04:00
Sebastian Wilzbach
ec47ac4224
Remove the WEB macro in favor of HTTP
...
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Mathias Lang
348bd95e06
Issue 16142: Correct test for hasElaborateAssign
...
Nested member's `@disable opAssign` should propagate to parents.
2016-06-09 14:52:45 +02:00
Joakim
a839be6dcc
Fix five modules where imports were made more local and selective.
2016-06-04 00:09:48 +05:30
Dmitry Olshansky
d80f31e1b0
Merge pull request #4370 from joakim-noah/imports
...
std.string and std.traits: use locally-scoped selective imports and document module-scope symbols
2016-06-03 17:47:15 +04:00
Joakim
ea6e96ece6
std.string and std.traits: use locally-scoped selective imports and document symbols imported at module scope, checked with ddmd
2016-06-03 16:36:26 +05:30
Jack Stouffer
e8832385b0
Add ddoc example for isDynamicArray
2016-06-02 11:38:25 -04:00
Jack Stouffer
380623daa4
Add ddoc example for isArray
2016-06-02 11:35:37 -04:00
Jack Stouffer
f93303eb2c
Add ddoc example to isImplicitlyConvertible
2016-06-01 16:35:29 -04:00
Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Brian Schott
0117797e2c
Merge pull request #4285 from wilzbach/update_travis_dscanner
...
proper filtering of dscanner
2016-05-07 14:45:50 -07:00