Commit graph

409 commits

Author SHA1 Message Date
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
Martin Nowak
be7276a9ca Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-31 18:57:28 +01:00
Dmitry Olshansky
8b187bbd15 Merge pull request #3357 from tom-tan/pure-nogc-typecons-RefCounted-methods
Add attributes to several methods for std.typecons.RefCounted
2015-10-30 17:46:04 +03:00
Andrei Alexandrescu
b6a61d9e71 Merge pull request #3288 from nordlow/struct-returned-findSplit
Struct Returned findSplit*() with implicit bool conversion
2015-10-29 14:37:39 -04:00
Martin Nowak
17af3b3014 fix Issue 15168 - ReplaceType broken for string sub-types 2015-10-28 10:54:18 +01:00
Martin Nowak
0e95f6723a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-27 15:55:59 +01:00
k-hara
6008df7804 Fix ReplaceType bug[3] - distinguish variadic function style - support typesafe variadic 2015-10-22 11:37:48 +09:00
k-hara
c8ac6c29db Fix ReplaceType bug[2] - support function local types 2015-10-22 11:33:21 +09:00
k-hara
c37ad2dadd Fix ReplaceType bug[1] - don't touch non-type template arguments on instantiated type 2015-10-22 11:26:14 +09:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Per Nordlöw
100e7a485b Struct returned findSplits with bool conversion 2015-10-05 21:56:33 +02:00
Robert burner Schadek
0390fba7e7 fix Issue 14940
https://issues.dlang.org/show_bug.cgi?id=14940

format
2015-08-26 10:29:00 +02:00
Martin Nowak
e45f39c55a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-08-10 10:07:27 +02:00
k-hara
eff54e62ca fix Issue 14890 - Can not construct a RedBlackTree of Tuples 2015-08-10 11:58:01 +09: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
Martin Nowak
60f9b8b538 Revert "Merge pull request #3139 from mrkline/better-unique"
This reverts commit 8f4a85bc83, reversing
changes made to d74e4d787a.

Delay unfinished feature until after 2.068.x.
2015-07-21 09:31:54 +02:00
Steven Schveighoffer
c7ea82e3f5 Merge pull request #3462 from japplegame/patch-1
Rebindable support for AAs.
2015-07-20 15:22:31 -04:00
Jack Applegame
66e3a52a62 Rebindable support for AAs 2015-07-17 10:21:31 +03:00
H. S. Teoh
6a27c5803b Fix grammar in BitFlags docs. 2015-07-15 14:54:35 -07:00
Robert Schadek
5faa1ccfc1 Merge pull request #3158 from tom-tan/workaround-for-14405
Add workaround for issue 1238
2015-06-27 16:08:42 +02:00
Andrei Alexandrescu
b0af624aa3 Always add function linkage 2015-06-08 13:14:07 -07:00
Andrei Alexandrescu
5f0a1a6751 Add ReplaceType, use it in Algebraic. Also add get!k to Variant. 2015-06-08 10:52:11 -07:00
Tomoya Tanjo
4c9b5b539e Add attributes to several methods for std.typecons.RefCounted 2015-06-02 14:20:07 +09:00
Rainer Schuetze
adab223837 remove trailing whitespace, detab, tolf 2015-05-31 11:24:01 +02:00
Robert burner Schadek
787637debd deprecate std.stream and friends 2015-05-28 06:48:28 +02:00
Martin Nowak
9a473ab891 enable ref escape checking for struct RefCounted 2015-05-13 01:15:14 +02: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
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
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Martin Nowak
8f4a85bc83 Merge pull request #3139 from mrkline/better-unique
Improve std.typecons.Unique
2015-04-24 20:24:18 +02:00
Matt Kline
5054c6f689 Elaborate on nested types and Unique
They don't go well together.
2015-04-24 00:49:33 -07:00
Matt Kline
ad3784f3b3 Cleanup of Unique as per Martin Nowak's suggestions
See https://github.com/D-Programming-Language/phobos/pull/3139
2015-04-24 00:40:54 -07:00
Matt Kline
5a34389f39 Fix typo in Unique.create 2015-04-21 01:08:58 -07:00
Matt Kline
1204e04e1e Unique for classes returns the object pointer 2015-04-21 01:06:02 -07:00
Matt Kline
1cc0b48789 Use emplace to set up structs for Unique 2015-04-21 01:02:48 -07:00
JakobOvrum
f7498ad8ec Merge pull request #3171 from MartinNowak/refCounted
fix Issue 14432 - move construction for RefCounted
2015-04-20 22:44:18 +09:00
Matt Kline
d2289a4d41 Return Unique.release to original form, deprecate it 2015-04-19 18:24:57 -07:00
Martin Nowak
1e19a4f713 use typeid(T).init() to reset moved value 2015-04-20 00:53:04 +02:00
JakobOvrum
ddfd111ab5 Merge pull request #3114 from MetaLang/nullable-doc-fixes
Improve Nullable documentation
2015-04-18 15:25:09 +09:00
Matt Kline
d24b738ccc Clean up Unique alias this 2015-04-17 00:32:05 -07:00
Matt Kline
836c55197e Do not let Unique escape underlying references
See https://github.com/D-Programming-Language/phobos/pull/3139#discussion-diff-28203345
2015-04-17 00:24:22 -07:00
Matt Kline
e112ec9b7f Return Unique to malloc/free
Marking its various bits as @nogc is still proving to be a challenge
since Object.destroy is not @nogc, among other things.

We _are_ using GC.addRange and GC.removeRange to handle anything
inside the underlying type that uses GC.
Why the user would do this in conjunction with Unique is
questionable, but until we can explicitly forbid doing so, let's
not break garbage collection for them.

Note that this also makes nested structs and classes impossible,
because there is no way AFAIK to get the frame pointer into
unique()
2015-04-16 23:58:28 -07:00
Matt Kline
c5605bf2c8 Turn Unique.create into a freestanding unique()
Also cleaned up the Unique documentation a bit.
Unfortunately some of the unittests could not be used as documented
unittests because placing them in the struct gives an error about
RTInfo!(Nested) being recursvely expanded.
2015-04-13 00:04:00 -07:00
Walter Bright
0d73c992a2 Merge pull request #3176 from MetaLang/whitehole-doc
Improve WhiteHole documentation
2015-04-12 00:36:06 -07:00
MetaLang
f581679303 Improve WhiteHole documentation 2015-04-11 16:34:55 -03:00
Martin Nowak
d288fb41dc Merge pull request #3169 from MetaLang/nullableref-doc-fix
Improve NullableRef documentation
2015-04-11 20:13:04 +02:00
JakobOvrum
1f6c706ffc Merge pull request #3175 from MetaLang/blackhole-doc
Improve Blackhole documentation
2015-04-11 20:03:31 +09:00