Commit graph

280 commits

Author SHA1 Message Date
H. S. Teoh
15a60b42a6 Merge pull request #1980 from CyberShadow/fix12297
fix Issue 12297 - std.typecons.Proxy does not properly forward IFTI calls
2014-08-13 17:40:46 -07:00
Михаил Страшун
e709fee45a Merge pull request #2131 from AndrejMitrovic/Fix12668
Issue 12668 -  std.traits.functionAttributes should use the new getFunctionAttributes trait.
2014-07-29 21:51:19 +02:00
Dmitry Olshansky
852c84317f Merge pull request #2308 from ntrel/unique-tests
Fix Issue 13068 - std.typecons.Unique should disable postblit
2014-07-20 20:15:41 +04:00
Nick Treleaven
172f20e6bf Update Unique docs 2014-07-13 11:44:55 +01:00
Nick Treleaven
1b85a4a1b1 Don't delete null reference/pointer 2014-07-13 11:44:13 +01:00
Nick Treleaven
16db4ef6b4 Fix Issue 13068 - std.typecons.Unique should disable postblit 2014-07-10 13:04:53 +01:00
Nick Treleaven
2f72bf464d Enable Unique!class unittest
Call release as a workaround to prevent Bar deletion in g(), leading to
access violation.
2014-07-10 13:04:51 +01:00
Nick Treleaven
92d522fa39 Enable Unique!struct unittest
Prevent double delete of Foo by calling release in f().
Cleanup unittests a little.
2014-07-10 13:04:14 +01:00
k-hara
70d5539b88 Supplemental fix for issue 13074 - revert opEquals and add toHash in std.typecons.Tuple 2014-07-09 13:40:01 +09:00
k-hara
0e3e71fc7c Remove redundant Tuple.opEquals
Today struct type equality `a == b` is expanded to `a.tupleof == b.tupleof`, so opEquals method is unnecessary for `std.tyoecons.Tuple`.
2014-07-05 00:41:32 +09:00
Justin Whear
8f1991447c Fix #9819: Allow access to named tuple's names
Adds a `fieldNames` alias to `std.typecons.Tuple` to return the user-supplied
names.  The actual fields are in an expression tuple, so the
user-supplied names are simply aliases, which previous to this PR, were
not accessible.

https://issues.dlang.org/show_bug.cgi?id=9819

Fix Issue 9819
2014-06-17 09:50:31 -07:00
jmdavis
8f7e70c2ef Make Rebindable @trusted. 2014-06-11 01:59:41 -07:00
Andrej Mitrovic
7a976513b9 Fix Issue 12668 - std.traits.functionAttributes should use the new
getFunctionAttributes trait.
2014-05-08 18:30:36 +02:00
monarchdodra
d609bd332f Sed "@safe pure nothrow" 2014-05-06 08:21:13 +02:00
monarch dodra
02884e6172 Merge pull request #2094 from AndrejMitrovic/Fix12464
Issue 12464 - Inject imports to core.vararg on Posix when wrapping C-style variadic functions via AutoImplement.
2014-04-24 17:16:50 +02:00
Andrej Mitrovic
31f968ee53 Fix Issue 12464 - Inject imports to core.vararg on Posix when wrapping C-style variadic functions via AutoImplement. 2014-04-24 16:10:09 +02:00
monarch dodra
7e1334fbda Merge pull request #2087 from AndrejMitrovic/Fix12596
Fix12596 - Implement Typedef ctor that can take itself as the parameter.
2014-04-23 22:28:36 +02:00
monarch dodra
aede15f059 Merge pull request #2102 from AndrejMitrovic/Fix11705
Issue 11705 - Document Typecons and its parameters properly.
2014-04-23 16:45:48 +02:00
Andrej Mitrovic
4e47221560 Fix Issue 11705 - Document Typecons and its parameters properly. 2014-04-22 22:55:15 +02:00
Andrej Mitrovic
c69d2959e8 Fix12596 - Implement Typedef ctor that can take itself as the parameter. 2014-04-19 14:44:52 +02:00
Dmitry Olshansky
0d29cdc3d6 Introduce UTF Matchers into std.uni.
It's a step zero to get decode-less std.regex.
UTF matchers are efficient functors around a set of
specific tries. Enables processing Unicode characters
without decoding at speeds on par with decoding itself.

Along the way make staticIota at 'package' protected and reuse it.

Fix a shameful typo in setSearcher.
2014-04-13 14:31:05 +04:00
Andrej Mitrovic
2604610475 Remove Ref template which was undocumented, unused, and had a non-working implementation. 2014-04-12 13:43:48 +02:00
Andrei Alexandrescu
e289a7cdd7 Revert "Merge pull request #1685 from blackwhale/utf8-matcher"
This reverts commit 216ca01ca8, reversing
changes made to d56c1dbc08.
2014-03-15 17:11:17 -07:00
Dmitry Olshansky
1c86ecf0c4 Introduce UTF Matchers into std.uni.
It's a step zero to get decode-less std.regex.
UTF matchers are efficient functors around a set of
specific tries. Enables processing Unicode characters
without decoding at speeds on par with decoding itself.

Along the way make staticIota at 'package' protected and reuse it.

Fix a shameful typo in setSearcher.
2014-03-08 13:55:32 +04:00
Vladimir Panteleev
dcef926c3a fix Issue 12297 - std.typecons.Proxy does not properly forward IFTI calls 2014-03-04 15:07:27 +00:00
monarchdodra
c6bd4766a3 Add support for non-assignable construction for tuple 2014-02-18 09:33:43 +01:00
Peter Alexander
f8aa638c5a Fix Issue 12046 - Disallow Rebindable!(T[N])
https://d.puremagic.com/issues/show_bug.cgi?id=12046
2014-02-15 20:00:12 +00:00
Peter Alexander
c9fe9679d4 Fix Issue 7654 - Fix Rebindable of narrow strings.
`Rebindable!(const(T)[])` should be `T[]`, but `Rebindable` was using `ElementType` instead of `ElementEncodingType`, which would result in `dchar[]` for narrow strings. This pull fixes this simple mistake.

https://d.puremagic.com/issues/show_bug.cgi?id=7654
2014-02-15 14:53:12 +00:00
Andrej Mitrovic
f9994612b8 Fixes Issue 7666 - Implement reverse property for Tuple. 2014-02-12 12:54:01 +01:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
monarch dodra
ae9356537e Merge pull request #1899 from Poita/bug12031
Fix Issue 12031 (partial) - opDollar for Typedef!T
2014-02-04 05:59:57 -08:00
k-hara
f9d39cbf59 fix Issue 12058 - std.typecons.AutoImplement does not work for inout member functions 2014-02-02 16:00:26 +09:00
Peter Alexander
27a6d57972 Fix Issue 12031 (partial) - opDollar for Typedef!T
Just forwarding the various kinds of `opDollar` in `Proxy!T`. Partially fixes bug 12031 -- I believe a dmd change is needed to completely fix it (separate to opDollar forwarding).
2014-02-01 20:29:44 +00:00
k-hara
557799fc55 fix Issue 12041 - Strange warning pragma when instantiating WhiteHole
Remove restiction in AutoImplement with nothrow function.
2014-01-30 19:21:17 +09:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
k-hara
6628a306cf Add more necessary local imports 2013-12-26 11:55:18 +09:00
k-hara
baf5c78deb Use selective local import and place at the head of the required code block 2013-12-26 11:55:06 +09:00
Andrei Alexandrescu
4093af87a9 Removed spurious messages, fixed unittest errors 2013-12-19 18:58:33 -08:00
Andrei Alexandrescu
de5789d6c9 Reduce deps in std.conv and std.typecons 2013-12-19 18:16:39 -08:00
monarch dodra
899604e5a6 Merge pull request #1644 from eco/patch-5
Add example of how to use scoped member variable
2013-12-15 23:44:37 -08:00
Martin Nowak
d5ddbb4901 Merge pull request #1724 from monarchdodra/tupleToString
Make Tuple.toString conditional
2013-12-15 15:31:32 -08:00
Tero Hänninen
a63dc3e356 Remove bug from staticIota in typecons
step is not used -> if passed anything other than 1 as step, staticIota
will behave incorrectly.
2013-12-06 17:13:24 +02:00
k-hara
b774a41e59 Get rid of templates just for attribute inference 2013-12-02 22:56:43 +09:00
k-hara
f8fe67ed59 Remove workaround for issue 10313 2013-12-02 10:18:29 +09:00
Daniel Murphy
a11a20ef74 Remove more uses of NCEG operators in phobos 2013-11-30 14:09:39 +11:00
monarchdodra
2af80dc13d Make Tuple.toString conditional 2013-11-26 08:59:02 +01:00
k-hara
38068aa53c Fix unittest for issue 10268. 2013-11-20 21:17:31 +09:00
Brad Anderson
d44f7f628c Add example of how to use scoped member variable 2013-10-15 17:13:32 -06:00
k-hara
4844aef982 Remove workaround for issue 10357
Because the root compiler issue 9665 has been fixed.
2013-10-15 13:07:30 +09:00
Walter Bright
e478ddef9e Merge pull request #1612 from 9rnsr/fix10357
[REG2.063] Issue 10357 - std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating
2013-10-10 15:07:00 -07:00