Commit graph

36 commits

Author SHA1 Message Date
Shin Fujishiro
5160b4e052 Fixed typecons.Tuple static assert failure 2010-06-22 05:33:16 +00:00
Sean Kelly
3229f1aa37 Cleaned up ctor def. I can still get bizarre compile errors in some cases, but I don't think the remaining ones are ctor-related. 2010-06-19 18:53:51 +00:00
Sean Kelly
3f20e149fc Added a default ctor for Tuple (needed to put a Tuple in a Variant).
Fixed an issue with the Tuple copy ctor.  It now compiles.
Added prioritySend per TDPL.  Needs more testing, but it looks good so far.
2010-06-19 06:46:39 +00:00
Walter Bright
245e29f630 notify gc of malloc'd data 2010-06-12 20:56:25 +00:00
Andrei Alexandrescu
6cd25a5054 Added RefCounted type, yum 2010-06-10 15:58:31 +00:00
Masahiro Nakagawa
adf941f657 Replace static opCall with Constructor. static opCall for struct construction is old style. 2010-06-01 19:44:00 +00:00
Masahiro Nakagawa
e8700d4484 Remove tie. This implementation is unsafe! 2010-05-29 17:24:14 +00:00
Shin Fujishiro
188b8169be typecons doc: made reference to the Class::BlackHole and Class::WhiteHole perl modules.
Plus made WhiteHole to throw NotImplementedError if possible.
2010-05-27 20:43:04 +00:00
Shin Fujishiro
1b18d516cc Added code for bugzilla 3909: toDelegate handles only a tiny subset of function pointer types.
The bug is not completely fixed.  toDelegate() still does not work well with @safe function pointers... because toDelegate() is unsafe.  And variadic arguments are ignored.
2010-05-26 14:22:06 +00:00
Shin Fujishiro
b0d41bd3e3 Fixed bugzilla 3653: Problem sorting array of Rebindable.
Thanks to pc for the patch!

std.algorithm.sort does assignments over input array, but Rebindable did not have opAssign overload for Rebindable itself. This change implements Rebindable.opAssign(Rebindable).
2010-05-26 05:59:01 +00:00
Shin Fujishiro
35beaec1d9 Fixed bugzilla 2738: Rebindable should work for interfaces. 2010-05-24 04:27:06 +00:00
Shin Fujishiro
19166286a7 Added BlackHole and WhiteHole. 2010-05-23 00:35:48 +00:00
Shin Fujishiro
163bd6fe4d Added AutoImplement to std.typecons. 2010-05-22 00:10:16 +00:00
Shin Fujishiro
5c9725d6cd Moved allSatisfy and staticMap to std.typetuple 2010-05-18 11:15:44 +00:00
Masahiro Nakagawa
093183db7a Add tie to std.typecons 2010-05-17 16:19:35 +00:00
Walter Bright
e790058bf4 invariant => immutable 2010-05-05 18:25:44 +00:00
Andrei Alexandrescu
144c9108de added alias expand for Tuple.field 2009-10-27 00:12:43 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
d218c12ede commented out Nullable and NullableRef for the time being 2009-09-03 03:27:45 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Andrei Alexandrescu
d05e7e21ea replaced indexOf with indexOfType, kept the old name as an alias that will be deprecated. 2009-07-04 07:08:39 +00:00
Andrei Alexandrescu
f3113665bd Restricted Tuple.opCmp and Tuple.opEquals a bit. 2009-04-30 20:55:44 +00:00
Andrei Alexandrescu
fbec43b21f Added Tuple.opComp. 2009-04-30 19:20:13 +00:00
Andrei Alexandrescu
c5ad7272fa minor 2009-04-19 17:18:03 +00:00
Andrei Alexandrescu
21797c63a5 Change Tuple.Type to Tuple.Types 2009-04-11 20:41:22 +00:00
Andrei Alexandrescu
71226e5948 * Added constructors, assignment operator, length, toString, and slice
to Tuple.
2009-04-06 18:35:00 +00:00
Don Clugston
6dbecd1864 Added TypeCons.AlignForSize for optimising struct layout (requested by dsimcha). 2009-01-22 07:08:32 +00:00
Bartosz Milewski
b54b0b5046 Unique template: will work when the language catches up 2008-09-12 03:10:14 +00:00
Andrei Alexandrescu
5f2e901c50 $(LI Fixed documentation in $(B std.typecons)) 2008-07-08 03:30:02 +00:00
Andrei Alexandrescu
cc43a5279d Finalized and documented the stupendous Rebindable template. 2008-05-16 21:16:46 +00:00
Andrei Alexandrescu
32f411e024 Added undocumented Rebindable in preparation for opImplicitCast. 2008-03-06 20:23:11 +00:00
Andrei Alexandrescu
067ca61b48 removed code bloat 2008-02-19 20:25:53 +00:00
Andrei Alexandrescu
946f205043 removed bloat-inducing test code 2008-02-19 09:21:25 +00:00
Andrei Alexandrescu
f4699442b3 fixed code bloat issue; added Tuple.toString; added function tuple(); fixed unlisted bug in enumValuesImpl. 2008-02-19 06:19:26 +00:00
Brad Roberts
e2c70371b8 Fix a warning from the enum code generator's results by adding a final return null 2007-12-10 01:09:02 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00