k-hara
fa5794770a
Issue 6902 - Different "pure nothrow int()" types
2011-11-14 17:48:22 +09:00
k-hara
58170c198c
Revert "Issue 6902 - Different "pure nothrow int()" types"
...
This reverts commit d26c719634
.
The pull 322 was merged in an accident, and it breaks Phobos.
2011-11-14 09:07:14 +09:00
k-hara
d26c719634
Issue 6902 - Different "pure nothrow int()" types
2011-11-12 13:59:50 +09:00
k-hara
89b986a855
Fix std.traits.isAbstractFunction breaking
2011-11-07 18:17:46 +09:00
David Simcha
4546b3a493
Merge pull request #318 from denis-sh/templates-improvement
...
Templates improvement
2011-11-06 14:58:38 -08:00
simendsjo
1e9994f7c3
The comment type //:::// confuses the vim syntax plugin making it very difficult to work with the file.
2011-11-06 15:55:37 +01:00
Denis Shelomovskij
064fc770d8
Get rid of fixed bugs mentions in std.traits
...
Workarounds removed for 4217, 4333, 2509
Mentioning removed for 4732, unittest is added instead
Corrected bug number from 2234 to 2997
2011-11-06 12:06:55 +03:00
Denis Shelomovskij
0c760dabd4
std.traits.FunctionTypeOf and isSomeFunction fixes to support nested @property functions
2011-11-06 11:03:57 +03:00
Lars T. Kyllingstad
41ee5a2cb8
Make std.traits.Unqual handle inout
2011-10-27 21:46:13 +02:00
Walter Bright
11fa236f0f
need fix for dmd pull 236
2011-10-07 23:37:35 -07:00
k-hara
e34a7debfd
Issue 5371 - ambiguous stringnize of class with alias this
...
By fixing bug 2777, we can implement StringTypeOf more properly.
2011-09-11 11:33:42 +09:00
Daniel Murphy
1590a5cc38
Issue 6572 - Deprecate typedef
...
Remove use of deprecated typedef from phobos. This mostly consists of changing typedef to alias, and disabling unittests that require typedef. One change to std.registry is needed to work around a bug in typedef (6571).
2011-08-30 13:22:10 +10:00
k-hara
5395df09c2
Remove std.datetime.DTRebindable
2011-08-24 11:55:36 +09:00
jmdavis
0ec7697819
Fixed enum values in std.traits to follow Phobos naming conventions.
2011-08-13 00:14:13 -07:00
k-hara
eb32bb2efc
Issue 6424 - std.traits.hasElaborateAssign is limited
2011-08-01 23:35:27 +09:00
k-hara
9c04bee411
Replace std.conv.implicitlyConverts to std.traits.isImplicitlyConvertible
...
The two templates has same purpose, but bit different behaviors.
implicitlyConverts(S, T) has following semantics:
is(S : T) and allow initializer conversion (T t = s; -> T t = T(s);)
Including initializer conversion is inconvenience for my to!() improvement in after commits, so replace it.
2011-07-07 08:19:00 +09:00
k-hara
2f14157e46
Issue 6197 - std.traits.isImplicitlyConvertible returns some wrong results.
2011-07-07 08:19:00 +09:00
Walter Bright
a319cd365a
update for pure inference
2011-06-20 01:10:33 -07:00
andralex
017c1e847d
bugzilla 3785 + improvements
2011-06-06 13:31:09 -05:00
k-hara
5d8f67b560
Get correct function type for comparing.
2011-06-05 14:08:30 +09:00
dsimcha
325a8fe64a
Special-case Rebindable in std.traits.hasAliasing and std.traits.hasUnsharedAliasing, so that a Rebindable!(immutable SomeObject) can be passed as a message between threads, etc.
2011-04-12 20:40:10 -04:00
dsimcha
3edf3bf1b7
Bug 5780: [patch] std.traits.hasIndirections incorrectly handles static arrays
2011-04-12 19:11:01 -04: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
Andrei Alexandrescu
81a4a4034a
Fix for issue 3272
2011-01-23 21:46:19 -06:00
Andrei Alexandrescu
3d865b35b6
Fix for issue 4942
2011-01-22 19:17:40 +00:00
Kenji Hara
84b03988c5
Fixed the fail of dmd test.
2010-12-25 12:37:48 +00:00
Kenji Hara
e0737dee46
bugzilla 5371, ambiguous stringnize of class with alias this
2010-12-25 00:42:35 +00: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
Don Clugston
84477a5d3e
Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output.
2010-11-24 19:34:47 +00:00
Shin Fujishiro
af1fb0b618
Constrain swap() with isMutable!T so that const objects should not be swapped. std.traits.isMutable is undocumented for now.
2010-11-18 21:45:18 +00:00
Andrei Alexandrescu
5a64b47d10
Fix for Bugzilla 2073
2010-09-26 04:35:12 +00:00
SHOO
7cd2e0339e
std.datetime: Added benchmark
...
This function came from std.date.
But now, benchmark returns Ticks[N] and don't use result argument.
I removed need to use GC for by doing it in this way.
2010-09-18 11:04:14 +00:00
David Simcha
e51eeec660
Bug 4882: std.traits hasUnsharedAliasing does not work for function type, plus unlisted bug: interfaces not considered to have indirection, aliasing, etc.
2010-09-17 23:43:54 +00:00
David Simcha
f252d5e611
Support pointers to structs in std.range.put().
2010-09-15 22:41:50 +00:00
David Simcha
8aad9c0e38
Bug 4834: Implicit sharing via delegates in std.concurrency
2010-09-07 23:05:25 +00:00
Shin Fujishiro
7a003d8cff
traits: Added EnumMembers for cleaning up std.conv to!enum.
2010-09-05 01:39:56 +00:00
David Simcha
817dc10f95
Fix hasElaborateCopyConstructor and hasElaborateAssign to look at whole representation. Also make std.range use hasElaborateCopyConstructor instead of rolling its own.
2010-09-04 19:35:27 +00:00
David Simcha
f31b036712
Associative arrays have raw and local aliasing too.
2010-09-04 15:48:36 +00:00
David Simcha
7923b82cdd
Associative arrays have indirections.
2010-09-04 15:35:32 +00:00
David Simcha
fc8a926290
std.traits: Add isAssignable.
2010-08-29 00:05:56 +00:00
Walter Bright
b8ce58ccd1
detab sources
2010-08-23 02:14:45 +00:00
SHOO
7ea8f5298a
Removed concept.
...
for template function literals.
isCallable does not match template function literals.
2010-08-21 09:42:39 +00:00
SHOO
cedd0339f6
Fix document
2010-08-21 09:21:41 +00:00
SHOO
4fffc6901b
Added isSafe, isUnsafe
...
isSafe!(func) checks the func that is @safe or @trusted
isUnsafe!(func) checks the func that is @system
2010-08-21 09:01:33 +00:00
David Simcha
db2c820045
Added isIterable, ForeachType to std.traits in preparation for improvements to std.array.array.
2010-08-19 00:48:56 +00:00
David Simcha
836922d87a
Bug 4292: CommonType fails for singular alias values.
2010-08-15 15:05:02 +00:00
David Simcha
06c166e10a
Fix several related bugs in std.math.pow(), massively improve unittests.
2010-08-12 02:00:17 +00:00
Andrei Alexandrescu
3e36278eb3
Added minor unittest
2010-07-28 07:58:10 +00:00
Andrei Alexandrescu
37ab6c65f3
Added hasMember
2010-07-14 01:17:00 +00:00