k-hara
f7f33b0cf7
Improve isAssignable to support identity assignable check.
2012-10-06 14:37:59 +09:00
k-hara
5186759832
fix Issue 8702 - tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works
2012-09-21 09:57:14 +09:00
k-hara
a5a9dc8c62
_Implicit manifest constant_ is almostly BAD feature to me and generic programming.
...
..
2012-09-19 00:44:18 +09:00
k-hara
2464637416
fix opCmp problem which same as opEquals
2012-09-19 00:44:13 +09:00
k-hara
414ca6ffd2
fix Issue 8686 - Tuple cannot define with type that has only mutable opEquals
...
We cannot show better error message for mismatching tuple lengths, because compiler would *always* try to instantiate const opEquals.
I also added tests for exhaustive opEquals signatures - const or mutable, and template or not
2012-09-19 00:01:05 +09:00
Andrei Alexandrescu
1122af373b
Merge pull request #750 from Panke/fix-8284
...
Fix bug #8284 by adding const opEquals to std.typecons.Tuple
2012-09-16 19:22:30 -07:00
k-hara
bcf7dd9bd2
fix Issue 8617 - std.typecons.Proxy.opEquals compiles error: undefined identifier 'startsWith'
2012-09-17 00:36:55 +09:00
monarchdodra
4624416409
Fixes for issue 8591 (nothrow)
2012-08-28 21:11:37 +02:00
Tobias Pankrath
9284423bdb
clean indentation and comment
2012-08-16 18:42:38 +00:00
Tobias Pankrath
3c878f4b90
Fix bug #8284 by adding const opEquals to std.typecons.Tuple
...
To fix bug #8284 std.typecons.Tuple needs to have a const opEquals.
Adds also a testcase for std.algorithm using std.typecons.Tuple as
element type for std.container.Array.
This pull request needs a dmd with pull 1075 to fix issue 8522.
2012-08-14 08:52:25 +00:00
monarchdodra
f0304974e8
Fix for opAssign(T)
...
This either:
*Asserts if autoInit==No and not initialized (instead of doing an access violation)
*EnsuresInitialized if autoInit==Yes
Uses "move(a, b)" instead of "b = move(a)" for slightly increased performance
2012-07-26 11:41:26 +03:00
jmdavis
28781bfb9f
Old deprecations which were not properly taken care of previously.
2012-07-07 02:03:49 -07:00
k-hara
72a33de959
Replace object.clear to destroy
2012-05-31 19:27:52 +09:00
k-hara
ec773717bb
Add author
2012-05-31 19:24:39 +09:00
David Nadlinger
61f991ba51
Issue 7796 - std.typecons.Unique is using writeln without importing std.stdio.
...
With Unique being a template, commit 4ee4efe
(pull request #601 ) caused the messages to be printed for unittest builds of client code as well.
2012-05-23 18:48:18 +02:00
David Nadlinger
ca86dad193
Bug 4356 is fixed, use ordinary assertion.
2012-05-23 18:47:45 +02:00
k-hara
4ee4efe2b0
fix Issue 7796 - std.typecons.Unique is using writeln without importing std.stdio
2012-05-23 20:24:16 +09:00
k-hara
51bdc47190
Change scoped to "Voldemort Type"
2012-05-12 18:38:09 +09:00
Hara Kenji
84218d3e1e
Merge pull request #570 from denis-sh/scoped-bug6580-fix
...
Fix Issue 6580 - scoped classes are aligned incorrectly
2012-05-08 23:41:32 -07:00
Denis Shelomovskij
2503b18d1c
Fix Issue 6580 - scoped classes are aligned incorrectly
2012-05-07 23:08:36 +04:00
Denis Shelomovskij
273eb21226
Fix Issue 8039 - scoped
doesn't call any elaborate destructors for struct fields
...
Phobos isn't a place for runtime stuff like `destroy`. And Phobos developers aren't people who should write/check such stuff.
2012-05-07 15:51:25 +04:00
k-hara
01a8d9ab54
Add static assert
2012-03-24 12:51:57 +09:00
k-hara
cf7b014651
Make identity comparison more efficient
2012-03-24 12:06:50 +09:00
k-hara
d8d8da861b
Fix std.typecons.Proxy for identity assignment
2012-03-24 12:06:50 +09:00
k-hara
5a29b03e28
Rename: ProxyOf to Proxy, and TypeDef to Typedef.
2012-03-08 22:51:06 -08:00
k-hara
a0dbea1d2c
Remove workaround for issue 5525
2012-03-08 22:51:05 -08:00
k-hara
8751299b79
Add test for indexing/slicing operator overloading.
2012-03-08 22:51:05 -08:00
dawg
f72c840be8
allow to construct scoped with qualified classes
2012-03-08 22:51:04 -08:00
dawg
8240295df1
use inout for accessing Scoped's payload
2012-03-08 22:51:04 -08:00
dawg
74e7a6536c
scoped allows to bypass class constructor
2012-03-08 22:51:04 -08:00
k-hara
7331e0388b
Reduce code redundancy in ProxyOf
2012-03-08 22:51:03 -08:00
k-hara
50d80bf9bc
Apply review result to TypeDef
...
- Add third template parameter 'cookie'.
- Rename internal payload variable.
2012-03-08 22:51:03 -08:00
k-hara
eee42e3978
Add TypeDef
2012-03-08 22:51:03 -08:00
k-hara
8f80d6a6fe
Add ProxyOf
2012-03-08 22:51:03 -08:00
Andrei Alexandrescu
7d1ef0e9ba
Merge branch 'master' of github.com:D-Programming-Language/phobos
2012-02-23 14:05:01 -06:00
k-hara
8283af10c1
Change opEquals signature to allow receiving rvalue.
2012-02-21 20:25:10 +09:00
Andrei Alexandrescu
62cc814a42
Merge pull request #435 from kennytm/pure_nullable
...
pure/nothrow/@safe for std.typecons.Nullable
2012-02-20 21:35:04 -08:00
dsimcha
f7c6e665b7
Fix unlisted bug in std.typecons.Scoped. writeln() has no place in production code in these cases and wasn't properly imported either.
2012-02-19 13:15:43 -05:00
KennyTM~
9334e2adbf
Make Nullable pure/nothrow/@safe/const when possible.
2012-02-15 23:07:50 +08:00
Andrei Alexandrescu
dc6adb5eca
Merge branch 'master' of github.com:D-Programming-Language/phobos
2012-02-12 11:07:16 -06:00
Andrei Alexandrescu
0c7d3231cc
Unittest for http://d.puremagic.com/issues/show_bug.cgi?id=7296
2012-01-31 14:32:07 -08: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
k-hara
19f9b0dee9
Remove workaround for bug 2997.
2012-01-21 00:58:08 +09:00
k-hara
1c6914ac3c
Reject bad assignment by template constraint.
2011-12-26 01:40:18 +09:00
Andrei Alexandrescu
b3c0ce24fc
Merge pull request #336 from denis-sh/typecons-improvement
...
Convert unnecessary flag `opDispatch` property functions to templates
2011-12-04 13:03:02 -08: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
Denis Shelomovskij
bee2f5a380
Convert unnecessary functions to templates
2011-11-22 15:28:59 +03:00
Brad Roberts
4447ff98ac
reduce another import (only needed for tests)
2011-10-03 00:22:06 -07:00
k-hara
71ed134f6e
Issue 6275 - Const values in tuples
2011-09-16 22:04:55 +09:00