Ferdinand Majerech
886c536cdc
(trivial) (ddoc) more descriptive Typedef doc.
...
Based on Andrei Alexandrescu's post: http://forum.dlang.org/post/lvj17a$78k$1@digitalmars.com
`MoneyEuros` makes use of the cookie more obvious than `TypeFloat1`.
2014-09-20 12:12:12 +02:00
Andrej Mitrovic
f9048c94ef
Fix Issue 11706 - Add a TypedefType trait to extract the underlying type
...
of a std.typecons.Typedef.
2014-09-08 11:47:45 +02:00
H. S. Teoh
3dda37428f
Merge pull request #2342 from Dicebot/ref-unqual
...
Fix issue 10165 (rework of PR #1302 )
2014-09-04 11:46:57 -07:00
monarch dodra
6ef6dbef22
Merge pull request #2463 from schuetzm/fix-proxy-traits-isarray
...
std.typecons.Proxy needs to import std.traits.isArray
2014-08-28 17:37:33 +02:00
Dicebot
6ec8c52640
Reverse static condition in Rebindable/RefUnqual
2014-08-28 17:29:52 +02:00
Dicebot
3b62411d2c
Add @nogc to RebindableCommon methods
2014-08-28 17:26:50 +02:00
Vladimir Panteleev
eeef77b418
fix Issue 13380 - Conflict with std.typecons.Identity and std.traits.Identity
2014-08-27 09:28:52 +00:00
k-hara
d20e91ae01
Prevent definition of non-disabled default constructors in template structs
2014-08-26 22:39:35 +09:00
Marc Schütz
930c33dfb8
std.typecons.Proxy needs to import std.traits.isArray
...
... because it is a mixin template which is evaluated at the place of
instantiation, where isArray is likely not available.
2014-08-25 21:14:53 +02:00
Михаил Страшун
45ad6a77af
Merge pull request #2346 from ntrel/unique-update
...
Fix Issue 13157 - std.typecons.Unique: Support construction and conversion from compatible types
2014-08-21 19:49:27 +02:00
Dicebot
4924d9ad24
Fix issue 10165 (rework of PR #1302 )
...
http://issues.dlang.org/show_bug.cgi?id=10165
Issue 10165: No syntax to create thread-local shared variables
Adds `UnqualRef` templated alias/struct that is similar to Rebindable but
strips away all qualifiers completely (including shared)
2014-08-21 18:12:33 +02:00
Nick Treleaven
3c429ca8de
Version out Unique.create
...
Leave this for now in case we get language support for checking
uniqueness.
2014-08-20 17:01:19 +01:00
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
Nick Treleaven
f61853b14f
Document RefT
2014-07-24 12:08:57 +01:00
Nick Treleaven
4862863dda
Replace unique() with Unique.create() for clarity
...
The former does not imply a heap allocation.
2014-07-24 11:58:29 +01:00
Nick Treleaven
e0f531ca20
Add example test for borrowing Unique by ref
2014-07-23 12:22:21 +01:00
Nick Treleaven
9ec551845f
Support assignment from compatible Unique type
2014-07-21 12:21:02 +01: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
8107264ad6
Clarify release docs
2014-07-18 15:45:57 +01:00
Nick Treleaven
f549b5f860
Add factory unique() for safe construction with 0 arguments
2014-07-18 15:45:50 +01:00
Nick Treleaven
994137ad62
Support transfer to unique base class
...
Note: Implicit return of a Derived lvalue -> Base is not supported.
Note: We don't need to disable the ref overload because postblit is
disabled now.
2014-07-18 15:43:55 +01:00
Nick Treleaven
54bdef27d7
Document isEmpty and make property
2014-07-18 15:41:27 +01:00
Nick Treleaven
8ac9c93b8e
Enable safe ctor, add example
2014-07-18 15:41:25 +01: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