Commit graph

333 commits

Author SHA1 Message Date
Martin Nowak
06fd47ffec fix Issue 14106 - sort is unsafe in debug mode
- need attribute inference to toString delegate
2015-02-02 22:39:13 +01:00
Andrei Alexandrescu
71e3ecf680 Merge pull request #2934 from WalterBright/dip25
DIP25: make phobos work with it
2015-01-30 13:59:37 -08:00
Walter Bright
dc302d26a4 DIP25: make phobos work with it 2015-01-30 12:02:48 -08:00
Robert burner Schadek
5f633b7e82 typecons documentation update
* moved examples into unittests
2015-01-29 22:38:59 +01:00
Peter Alexander
052c50d3cb Fix Issue 13781 - Tuple assign should be @nogc 2014-12-31 19:23:35 +00:00
ZombineDev
1e803e65f6 Fix typo in BitFlags unit test. 2014-12-18 16:39:18 +02:00
Peter Alexander
d1ffb938b5 Fix Issue 10104 - Group of array of const/immutable 2014-12-15 20:22:07 +00:00
H. S. Teoh
ecd25fdd26 Merge pull request #2058 from lultimouomo/flags
Add Flags template
2014-12-13 13:05:39 -08:00
Luca Niccoli
ec9965d656 Add BitFlags template
BitFlags is a typecons template for storing OR combinaton of enum
values in a type safe fashion.
2014-12-10 10:13:26 +01:00
Peter Alexander
3d8838060f Issue 13837 - Allow names for tuple 2014-12-09 22:42:39 +00:00
Igor Stepanov
74e8a95c2c allow casting Typedef to another Typedef 2014-12-02 19:01:19 +03:00
Hara Kenji
06ac5031b1 Merge pull request #2740 from garlic-flavor/master
std.typecons.Proxy inside classes
2014-11-25 00:01:08 +09:00
garlic-flavor
e5269c8533 specialization of std.typecons.Proxy for classes
using selective import

remove nonsense code

integration of static this.

add a comment

avoiding some warnings

remove InvalidTypeException

improve readability
2014-11-24 03:26:08 +09:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
k-hara
8248c6b1e8 fix property enforcement 2014-11-22 01:50:41 +09:00
David Nadlinger
7e80e67630 Merge pull request #2728 from 9il/typecons
std.typecons: remake toString to template, clean module imports
2014-11-20 22:11:54 +01:00
Ilya Yaroshenko
af02101ab9 std.typecons: remake toString to template, clean module imports
update datetime unittests
2014-11-20 23:08:33 +03:00
Lars T. Kyllingstad
96583fe46b isNaN() is not a property
...so it shouldn't be used as one.
2014-11-20 20:22:00 +01:00
k-hara
b80083f198 fix property enforcement 2014-11-20 22:37:57 +09:00
H. S. Teoh
512b0ab382 Document new idiom for using Flag. 2014-11-19 07:59:54 -08:00
Ilya Yaroshenko
efb880f651 move format to std.format
The reason is to do not import `std.uni` tables, `std.string` and
probably `std.algorithm`. Note that format is used in CTFE code and
`Exception` handing.

 And it is more comfortable to import `format` from `std.format`.

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

update std.conv scope import

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

move sfromat

add public import of sformat

use std.uni
2014-11-18 22:14:28 +03:00
garlic-flavor
31f39c0158 a bug was removed. 2014-11-16 00:40:10 +09:00
garlic-flavor
67571fccde Merge https://github.com/D-Programming-Language/phobos 2014-11-15 23:44:49 +09:00
Geod24
10d59acfed Remove private staticFilter from AutoImplement and use std.typetuple.Filter instead 2014-11-09 21:47:15 +01:00
garlic-flavor
7cd3f18573 some update 2014-11-04 03:38:47 +09:00
Dmitry Olshansky
2e58214d1d Merge pull request #2587 from MetaLang/nullable-tostring
Fix Issue 10915 - std.typecons.Nullable throws in writeln() if it's null
2014-10-31 22:03:05 +03:00
MetaLang
2c8fdeb0b0 Fix Issue 10915 - std.typecons.Nullable throws in writeln() if it's null 2014-10-11 21:06:15 -03:00
Robert burner Schadek
4c83493a21 typecons had some trailing whitespace 2014-10-10 14:12:40 +02:00
garlic-flavor
6a3827c042 add unittest for Typedef.toHash 2014-10-10 03:03:10 +09:00
garlic-flavor
172442e374 add unittest for Typedef.toHash 2014-10-10 03:00:41 +09:00
garlic-flavor
1ac1c5f547 add toHash() to Typedef 2014-10-05 00:17:36 +09:00
k-hara
6e54969188 Move prefix member function attributes to postfix 2014-10-04 22:27:14 +09:00
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