Commit graph

823 commits

Author SHA1 Message Date
Andrej Mitrovic
92a8192615 Implement KeyType and ValueType 2012-02-22 19:27:33 +01:00
Andrei Alexandrescu
3daab5ada2 Merge pull request #407 from 9rnsr/improve_templates
More use of eponymous template trick
2012-02-09 09:45:37 -08:00
k-hara
686f53f6d2 Issue 5718 - Can't demangle symbol defined inside unittest block
std.traits.mangledName should return valid mangled name against symbols in function.
2012-02-02 00:25:20 +09:00
k-hara
12322b9e5c Fix test of hasMember 2012-01-29 20:40:18 +09:00
k-hara
9930db8839 More readable unittest in std.traits 2012-01-29 20:40:07 +09:00
k-hara
b7e47383db More use of eponymous template trick 2012-01-29 20:39:55 +09:00
k-hara
af9ea3465c Move implementation templates into template local scope 2012-01-29 20:37:48 +09:00
Jonathan M Davis
59d53d15d7 Merge pull request #298 from 9rnsr/improve_format
Cleanup and improve std.format
2012-01-22 18:15:48 -08:00
k-hara
19f9b0dee9 Remove workaround for bug 2997. 2012-01-21 00:58:08 +09:00
k-hara
a51a58b62f Workaround for 6744 2012-01-21 00:56:15 +09:00
Robert Clipsham
c7f9c71624 Fix copy/paste fail. 2012-01-07 02:57:24 +00:00
Robert Clipsham
bf232cea4b Fix a slight issue with fullyQualifiedName 2012-01-07 02:32:27 +00:00
Robert Clipsham
8c8fd3ef88 Fix names to match phobos style guidelines. 2012-01-06 22:58:25 +00:00
Robert Clipsham
9b790cbf04 Add PackageName, ModuleName and FullyQualifiedName traits. 2012-01-06 22:50:28 +00:00
k-hara
d493815bfe Supplemental changes for 3235 & 6714 2011-12-31 14:39:05 +09:00
Walter Bright
380ae65511 remove empty statements 2011-12-29 00:05:45 -08:00
Jonathan M Davis
ea3a33b307 Merge pull request #350 from shoo/fix6642
Issue 6642 - SysTime should not be hasUnsharedAliasing
2011-12-20 23:13:49 -08:00
k-hara
e9a4f6660d Issue 7070 - can't assign null to Variant 2011-12-10 12:26:48 +09:00
Walter Bright
86df60f442 needed due to fix to Issue 7027 2011-12-07 20:39:46 -08:00
shoo
a2eeb11c67 Issue 6642 - SysTime should not be hasUnsharedAliasing
http://d.puremagic.com/issues/show_bug.cgi?id=6642
2011-12-05 23:42:42 +09:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
shoo
532674f858 Issue 6979 - hasUnsharedAliasing cannot accept plural parameters 2011-12-01 02:48:09 +09:00
k-hara
3331f1fe97 Issue 6973 - static assert(isOutputRange!(OutputRange!int, int)) is false 2011-11-25 19:45:10 +09:00
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