Commit graph

127 commits

Author SHA1 Message Date
MetaLang
85bccdb9ab Replace use of T.min to determine signedness with std.traits.isUnsigned. 2014-08-04 00:50:17 -03:00
yglukhov
7da102aee6 Fixed handling of a struct with no "length" field defined but with opDispatch of inappropriate type. 2014-07-15 23:57:01 +03:00
Steven Schveighoffer
3cd7afcb1b Merge pull request #2330 from joakim-noah/strerror_move
Deprecate std.c.string and move its contents to druntime
2014-07-15 16:10:14 -04:00
Михаил Страшун
45fda72192 Merge pull request #2147 from yglukhov/issue10194
Issue 10194. Variant does not call struct destructors.
2014-07-14 13:40:22 +03:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
k-hara
6ba09e0c6d fix Issue 10916 - toHash on VariantN not being recognised
Make VariantN.toHash() const nothrow @safe. Assume that `VariantN.type` property is @safe nothrow.
2014-07-05 00:41:30 +09:00
k-hara
18efc8c5dc fix Issue 13000 - Casts should be removed to utilize features of inout 2014-06-28 21:37:02 +09:00
k-hara
d2345918b4 Remove redundant attributes 2014-06-27 08:34:15 +09:00
Dmitry Olshansky
d3fa054a9c Merge pull request #2188 from Kapps/fix12771
Fix issue 12771 - Variant opIndex for static arrays is not implemented.
2014-06-06 11:34:56 +03:00
Ognjen Ivkovic
e6664b1230 Shorten array checks to isArray 2014-05-26 18:30:52 -06:00
Ognjen Ivkovic
8378473199 Fix issue 12771 - Variant opIndex for static arrays is not implemented. 2014-05-19 18:58:01 -06:00
monarchdodra
001fad4558 Remove trailing whitespaces 2014-05-17 15:35:25 +02:00
uran
254c27971d Implemented elaborate copying support. 2014-05-06 16:07:51 +03:00
uran
0c40d1ea64 Issue 10194. Variant does not call struct destructors. 2014-05-06 13:06:31 +03:00
Andrej Mitrovic
c8656c37b7 Fix Issue 12600 - Variant should support coercion to bool. 2014-04-23 21:27:59 +02:00
Andrej Mitrovic
7f9df4a886 Strip spaces. 2014-04-23 21:24:58 +02:00
Dylan Knutson
bcf0f978e5 Add unittest for 12540 2014-04-11 12:24:34 -07:00
Andrei Alexandrescu
549657fe65 Merge pull request #1963 from Kapps/fix12157
Fix issue 12157 - Variant opEquals always returns false for classes.
2014-03-15 10:21:44 -07:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
Ognjen Ivkovic
6b91d4e1a1 Added workaround for bug 12164.
Style: Fix lack of space after if.
2014-02-23 23:42:36 -06:00
Andrej Mitrovic
91c85101e8 Merge pull request #1934 from Kapps/fix8580
Fix issue 8580 - Peek returns an invalid pointer for structs larger than Variant.size.
2014-02-17 10:05:59 +01:00
Ognjen Ivkovic
0c82698b6f Fix issue 8580 - Peek returns an invalid pointer for structs larger than Variant.size.
Style: Add space between if and condition.
2014-02-17 01:43:24 -06:00
Ognjen Ivkovic
51fae691de Remove code duplication in Variant fptr for compare selector. 2014-02-14 01:57:46 -06:00
Ognjen Ivkovic
83b0cf52a5 Fix issue 12157 - Variant opEquals always returns false for classes and interfaces. 2014-02-14 01:47:44 -06:00
Ognjen Ivkovic
467d5d684b Fixed unittests to include original, proper, test case. 2014-02-14 00:26:32 -06:00
Ognjen Ivkovic
23f292ce1c Add assignment to EmptyArray.init to prevent use before set error. 2014-02-14 00:09:50 -06:00
Ognjen Ivkovic
b21c398ca2 Fix issue 10958 - Variant fails to compile for types with sizeof == 0. 2014-02-14 00:04:22 -06:00
k-hara
1323bd4f00 fix Issue 12071 - Algebraic won't take delegate returning structure
Use `Variant` rather than `VariantN` in order to pack arguments and returned value in opCall.
2014-02-11 21:02:02 +09:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
k-hara
545a9450f8 fix property enforcement 2014-02-10 22:24:02 +09:00
monarch dodra
67a4ad1f69 Merge pull request #1869 from GoldMax/Issue-7069
The std.traits.ImplicitConversionTargets returns wrong result for dchar
2014-01-31 04:11:11 -08:00
GoldMax
b097805473 remove templates 2014-01-20 11:46:04 +07:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
GoldMax
6e7eabbd42 fix 7069 2014-01-17 14:58:52 +07:00
Johannes Pfau
a7442de743 std.variant: Adjust test for ARM
See http://d.puremagic.com/issues/show_bug.cgi?id=10879
2014-01-14 21:06:09 +01:00
monarchdodra
44fe3d88f7 Remove tabs 2014-01-08 08:37:52 +01:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
Martin Nowak
05fe0ae758 fix usage of Type.prop in typeof expressions
- use Type.init.prop
2013-12-01 21:32:32 +01:00
k-hara
aa01e5cb02 fix property enforcement 2013-11-02 01:14:16 +09:00
Ognjen Ivkovic
482f938b53 Resolve merge conflict. 2013-10-26 11:47:11 -06:00
Ognjen Ivkovic
4d30a5f278 Fix issue 11361 - Variant fails to compile with delegates containing const arguments. 2013-10-26 00:32:27 -06:00
Ognjen Ivkovic
9e0563d5e0 Slightly reworded comment. 2013-10-25 20:26:22 -06:00
Ognjen Ivkovic
042f3d4282 Add unittests for issue 11360. 2013-10-25 20:24:05 -06:00
Ognjen Ivkovic
a563a920eb Changed to return uninitialized Variant when the stored function returns void. 2013-10-25 19:22:18 -06:00
Andrej Mitrovic
92c71f45f8 Merge pull request #1152 from andralex/4916
Fix Issue 4916: struct VariantN does not overload ()
2013-10-24 18:30:37 -07:00
Kapps
01b7536eb9 Fix 10961 - Assigning void[] to Variant causes compiler errors. 2013-09-03 18:24:27 -06:00
k-hara
206d6f7fe9 Add workaround to fix issue 10567
Currently VariantN does not support const objects comparison. So just add specialized opCmp member and use cast().
2013-07-10 01:33:21 +09:00
Martin Nowak
2dba41d032 fix issue 10017 2013-05-27 17:15:43 +02:00
Vladimir Panteleev
2e4dbe8623 std.variant: Fix "ditto ditto" documentation bug 2013-04-10 13:21:41 +00:00
k-hara
3eecfd2b1e fix Issue 3789 - Structs members that require non-bitwise comparison not correctly compared 2013-03-09 16:52:43 +09:00