Commit graph

83 commits

Author SHA1 Message Date
k-hara
71ed134f6e Issue 6275 - Const values in tuples 2011-09-16 22:04:55 +09:00
k-hara
149ddb7644 Add test for 6608 2011-09-06 15:57:11 +09:00
k-hara
fc8789e142 Add test for 6606 2011-09-06 15:53:57 +09:00
k-hara
0a91eaf60a Improve Tuple formatting 2011-09-06 15:35:12 +09:00
k-hara
cf62cd2b3d Make all member functions in std.typecons.Rebindable as pure nothrow 2011-08-24 11:55:36 +09:00
k-hara
5361f0c940 Merge remote branch 'remotes/upstream/master' into fix_scoped
Conflicts:
	std/typecons.d
2011-08-17 02:10:37 +09:00
k-hara
3c1fb1dfd3 Fix indentation. 2011-08-17 00:31:59 +09:00
k-hara
8a35dfc18a Fix std.typecons.scoped problem with interface inheritance 2011-08-16 16:31:54 +09:00
Andrei Alexandrescu
7842390577 Merge pull request #153 from kennytm/nullable
Re-enable std.typecons.Nullable and NullableRef
2011-08-13 22:52:02 -07:00
Andrei Alexandrescu
f122aebf2f Merge pull request #148 from 9rnsr/fix4500
Issue 4500 - scoped moves class after calling the constructor
2011-08-13 22:10:03 -07:00
jmdavis
0ec7697819 Fixed enum values in std.traits to follow Phobos naming conventions. 2011-08-13 00:14:13 -07:00
KennyTM~
1708e5589f std.typecons.Nullable: Fix doc typo. 2011-07-25 14:22:06 +08:00
KennyTM~
8ffcb34c00 Re-enable std.typecons.Nullable and NullableRef 2011-07-22 18:36:03 +08:00
k-hara
79de2881de Issue 4500 - scoped moves class after calling the constructor 2011-07-17 22:41:03 +09:00
Daniel Murphy
df5e7a80d3 Rainer Schuetze's fix to prevent adding override to non-virtual functions.
This is required before http://d.puremagic.com/issues/show_bug.cgi?id=3581 can be fixed.
2011-07-08 16:45:05 +10:00
Andrei Alexandrescu
452926cf0a Merge pull request #105 from blackwhale/regexp-to-regex
make dirEntries return InputRange (formly regex to regexp)
2011-06-21 11:55:27 -07:00
Dmitry Olshansky
4ac7d6e9d7 Make DirIterator an InputRange (Win32) 2011-06-13 15:46:41 +04:00
Andrei Alexandrescu
801ccc96ce Changed yes and no to Yes and No types 2011-06-10 18:14:36 -05:00
Andrei Alexandrescu
84c75336a4 Added yes and no names 2011-06-10 15:51:42 -05:00
Andrei Alexandrescu
7af1109c0b Flag uses bool as its base type 2011-06-10 11:20:17 -05:00
Andrei Alexandrescu
43af62e365 Added std.typecons.Flag 2011-06-10 11:04:23 -05:00
dsimcha
64be18eea8 Fix std.typecons unittest on 64-bit. 2011-04-27 21:16:09 -04:00
andralex
e5f2d8eaf4 Merge branch 'master' of https://github.com/kennytm/phobos into testing-pull-request 2011-04-25 01:02:45 -05:00
KennyTM~
8786bd8cb1 Issue 4674: Change std.typecons.alignForSize's signature to (string[] names...)
This patch also removes many other workarounds in the function (2562, 2564, 2569).

Note that the return type has been changed from char[] to string, but since this
function is intended for mixin(), it should not cause many trouble.
2011-03-07 04:22:34 +08:00
Andrei Alexandrescu
1083bd4e7b One pass through std.range and friends
* Made emplace faster and replaced calls to it to also make them faster.

* Replaced phobos.d in posix.mak with index.d.

* Added version=StdDdoc to documentation build in posix.mak, and replaced uses of D_Ddoc with it.

* Improved documentation target in posix.mak (target dir automatically created).

* Added nice documentation table and cheat sheet at the top of std.algorithm.

* Replaced a few helper structs in std.range and std.algorithm with local structs, which simplify matters a fair amount.

* Added more constraints to functions in std.algorithm (still work in progress).

* Improved error message in std.algorithm.sort in case of failure to sort.

* std.random.dice(1, 10) now works (no need for array notation std.random.dice([1, 10])).

* Fixed documentation bugs and insufficiencies in std.range (still more to do).

* Improved speed of walkLength.

* Simplified retro.

* Simplified and optimized stride. Also folded stride(stride(r, a), b) into stride(r, a * b).

* Added roundRobin to std.range, which as a perk simplified radial.

* Added takeOne and takeNone to std.range.

* Added unsigned to std.traits.
2011-02-27 12:38:49 -06:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Brad Roberts
f368104f37 A bunch of 64 bit fixes, including disabling tests that don't pass 2010-12-23 20:39:22 +00:00
Sean Kelly
d04c21a806 Minimal support for toString use on shared objects. format now generates a meaningful compile error when attempting to format a shared object, and Tuple can now contain shared objects (the toString operation returns typeinfo for the object instead of calling toString). 2010-10-07 20:44:06 +00:00
Andrei Alexandrescu
362bece515 Fix for bugzilla 3318 2010-10-03 02:21:15 +00:00
Andrei Alexandrescu
934da4922b Deprecated defineEnum 2010-09-26 15:28:50 +00:00
Shin Fujishiro
d201e25c38 Tuple: Reduced instantiations and duplicate tests to deal with failing tests on win32.
See http://lists.puremagic.com/pipermail/phobos/2010-September/002609.html
2010-09-19 03:40:05 +00:00
Shin Fujishiro
430021772b std.typecons: Remove swap() in Tuple's constructor for now (it's incorrect if U != typeof(this)). 2010-09-18 06:07:19 +00:00
Shin Fujishiro
c6920e33cb Fixed access violation due to std.typecons.Tuple.
Suppressed the codegen for a dummy opAssign that is there just for a workaround of the bug 4424.
2010-09-18 06:07:09 +00:00
Shin Fujishiro
75592dc0f3 Workaround: std.typecons fails depending on the order of compilation. 2010-09-18 01:27:48 +00:00
Shin Fujishiro
10f0c7c702 std.typecons: Several improvements to Tuple.
- Tuple members are now accessible with the syntax a[0], a[1] etc.
- Eliminated an internal union (see bug 4421 and 4846). Re-implemented named members with alias.
- Worked around bug 4424. Got opAssign back.
- Made Tuple.slice!(from, to) to preserve field names if any.
- Added isTuple!(T) template.
- Removed the 'default constructor' that is never called.
- Changed Tuple.toString() to use formattedWrite() instead of the `static if (is(to!string...))` thingy.
2010-09-17 21:40:15 +00:00
David Simcha
620c0b0191 Add at!() for std.typecons.Tuple to mitigate breakage of old code that depended on the Proxy struct from std.range.Zip. Intentionally lacking ddoc since this is purely a backwards compatibility hack that IMHO should be deprecated or removed entirely eventually. 2010-09-09 20:21:44 +00:00
Steven Schveighoffer
7e89201cda Rewrote Appender to be safer and to not corrupt memory.
Fixed all places that use appender to use the safer interface.
bugzilla 4681: Appender access violation
2010-08-26 11:49:50 +00:00
David Simcha
e3331fbd90 Bug 4381: Length attribute for std.typecons.Tuple 2010-08-15 02:01:48 +00:00
David Simcha
38c8089063 Add convenience functions for Rebindable. 2010-08-14 00:40:50 +00:00
Brad Roberts
9eff03d36a Fix typo in documentation (reported in ng by Andrej) 2010-07-30 19:06:49 +00:00
Andrei Alexandrescu
0c07d592d4 Fixed bug reported by Max Samukha in scoped() 2010-07-23 16:12:11 +00:00
Andrei Alexandrescu
c2f7d08c1d Simplified scoped() 2010-07-22 19:33:04 +00:00
Andrei Alexandrescu
576cdf6d08 Fixed bug in scoped() 2010-07-21 22:38:14 +00:00
Andrei Alexandrescu
3121ed957a Added scoped() function 2010-07-21 22:24:17 +00:00
Andrei Alexandrescu
203e291864 Improvements to RefCounted. Better names (no clashes) and also defined a debug mode. Compiling with debug=RefCounted gives access to a bool property debugging that allows tracking the lifetime of the refcounted object. 2010-07-09 04:21:10 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Andrei Alexandrescu
70a14177ce Changed broken opAssign to assign, plus minor changes to RefCounted 2010-07-04 21:54:33 +00:00
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