Benjamin L. Merritt
5f08c058ab
Changed "Examples:" in Ddoc to "Example:"
2015-12-17 18:32:41 -08:00
Brian Schott
40b2e45e33
Merge pull request #3838 from jmdavis/deprecations
...
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Brian Schott
d1d129243f
Merge pull request #3827 from rcorre/getSymbolsByUDA_private2
...
Enable getSymbolsByUDA to retrieve private members.
2015-11-29 01:41:03 -08:00
Ryan Roden-Corrent
79fd6aac79
Enable getSymbolsByUDA to retrieve private members.
...
Resolves #15335 : getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.
Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Vladimir Panteleev
e90be60a67
Merge pull request #3839 from aG0aep6G/ddlink
...
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428
Merge pull request #3807 from dcarp/Fix15320
...
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
...
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00
Jonathan M Davis
d34164a2ea
Move some deprecations along.
2015-11-26 00:28:38 -08:00
anonymous
1c8467c676
update links to spec pages
2015-11-24 17:58:49 +01:00
Dragos Carp
eb293b5063
Fix issue 15320
2015-11-13 03:45:29 +01:00
Jack Applegame
cafed8e1c3
allows std.traits.getUDAs to filter attributes by template type.
...
See unittests.
2015-11-05 11:18:16 +03:00
Andrei Alexandrescu
168d96dfd7
Merge pull request #3395 from nordlow/either-and-every
...
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628
Add algorithm either() and trait allSatisfy()
2015-10-29 21:11:05 +01:00
Martin Nowak
0e95f6723a
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e
fixup for string-like overloads
...
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
f5843a3cfe
add isStringLike to std.traits
...
- select only structs/static array that are implicitly convertible to a string
- also add internal peelStringLike helper
2015-10-25 18:59:08 +01:00
Walter Bright
cf22992cbb
Merge pull request #3768 from CyberShadow/pull-20151024-051829
...
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007
HTML fixes
2015-10-24 06:19:23 +00:00
Jack Stouffer
58c48c8b3d
added unittest docs to isNarrowString
2015-10-23 10:35:26 -04:00
Andrei Alexandrescu
8b974d2b49
Undo inadvertent changes to std/math.d and std/traits.d, delete std/typed_allocator.d
2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
0477b4e458
Johannes Phau's review
2015-10-02 07:33:42 -04:00
Petar Kirov
a3cd1da909
Remove redundant assert in documented unittest
2015-09-10 16:51:35 +03:00
Dmitry Olshansky
a336f3c7bc
Merge pull request #3497 from aG0aep6G/hasMember
...
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
anonymous
b593591978
Ddoc: fix two stray parentheses
2015-08-13 22:18:31 +02:00
MetaLang
387b7f7319
Remove workaround for unittests failing with compiler change
...
I had to introduce a workaround in https://github.com/D-Programming-Language/phobos/pull/3547 because the unittests would not pass without the matching compiler change https://github.com/D-Programming-Language/dmd/pull/4868 . Now that the compiler fix is merged, the workaround can be removed.
2015-08-12 10:31:29 -03:00
MetaLang
597b0e0cad
Fix unittests that ignore the return attribute
2015-08-12 00:16:28 -03:00
Martin Nowak
5ca7ddad60
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
Conflicts:
posix.mak
Manually edited:
std/datetime.d (rename toNormalizedPath -> asNormalizedPath)
2015-07-24 01:28:58 +02:00
Walter Bright
31c9630702
add std.traits.isAutodecodableString() to fix Issue 14765
2015-07-23 07:22:25 +02:00
anonymous
3d02450030
Ddoc: add missing parenthesis
2015-07-16 21:35:31 +02:00
anonymous
dd2161705a
std.traits.hasMember: just forward to __traits(hasMember, ...)
...
This way opDispatch'ed members are recognized.
Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
MetaLang
69d62066d2
Add CopyConstness
2015-07-15 23:14:33 -03:00
Hackerpilot
7457e9eddf
Use 'Identity' intstead of local 'I' alias
2015-06-22 14:59:57 -07:00
Hackerpilot
5e7e98efcb
Fix typo
2015-06-19 15:26:00 -07:00
Hackerpilot
bbdf899a7d
Document the non-recursive nature of getSymbolsByUDA
2015-06-19 14:24:05 -07:00
Hackerpilot
b3c2d0474d
Add getSymbolsByUDA template
2015-06-18 14:10:42 -07:00
Robert Schadek
a9758d00f5
Merge pull request #3363 from economicmodeling/add-getUDA
...
Add getUDA template
2015-06-18 11:17:43 +02:00
Hackerpilot
0b1e29cfa1
Rename ModifyTypePreservingSTC to ModifyTypePreservingTQ and make it public.
2015-06-03 16:10:35 -07:00
Hackerpilot
9cb43fb7b6
Rename getUDA to getUDAs and allow it to return multiple matching UDAs
2015-06-03 13:40:58 -07:00
Hackerpilot
59f259f197
Add getUDA template
2015-06-02 17:08:20 -07:00
Hackerpilot
58550441b7
Add hasUDA template
2015-06-02 12:28:02 -07:00
Robert burner Schadek
0da6f7f291
traits: alias syntax update
...
fix
2015-05-28 20:55:54 +02:00
Steven Schveighoffer
6f3fca2df6
TemplateOf example wasn't being included in ddoc because the second overload was not ditto'd
2015-05-26 11:45:03 -06:00
Martin
bb4fb43624
std.traits: Make unittest independent of std.stdio.printf linkage.
2015-05-14 20:28:09 +02:00
Walter Bright
40ca5eabc6
Rename *Tuple symbols
2015-05-06 20:57:24 -07:00
Walter Bright
d9a9826e55
Revert "Introducing std.meta package"
2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748
Don't use fqn for any/all
...
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
a76d90c927
Phobos should only mention tuple as std.typecons.Tuple
2015-05-05 22:22:11 +03:00
Dicebot
0f74b4c29f
Stop mentioning TypeTuple in std.traits
...
Aliases old names as undocumented (but not deprecated) symbols.
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef
Rename old std.typetuple symbols inside Phobos
...
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3
TypeTuple -> MetaList inside Phobos
2015-05-05 22:22:11 +03:00