Sebastian Wilzbach
a1bb0515fc
Automatically add spaces to binary operators (>=)
...
command:
sed -E "s/([[:alnum:]]) >= ([[:alnum:]])/\1 >= \2/g" -i **/*.d
sed -E "s/([[:alnum:]])>= ([[:alnum:]])/\1 >= \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) >=([[:alnum:]])/\1 >= \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
ef7be4b60d
Automatically add spaces to binary operators (<<)
...
command:
sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
d905ef53b1
Automatically add spaces to binary operators (<=)
...
command:
sed -E "s/([[:alnum:]]) <= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <=([[:alnum:]])/\1 <= \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
0b33b50812
Automatically add spaces to binary operators (!=)
...
command:
sed -E "s/([[:alnum:]]) != ([[:alnum:]])/\1 != \2/g" -i **/*.d
sed -E "s/([[:alnum:]])!= ([[:alnum:]])/\1 != \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) !=([[:alnum:]])/\1 != \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a2c6398332
Automatically add spaces to binary operators (==)
...
command:
sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
425ab667a3
Automatically set the range style from a..b -> a .. b
...
Commands:
sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Andrei Alexandrescu
027ae18cab
Merge pull request #5175 from wilzbach/style-cast-space
...
Add a check to enforce space after cast(..) expressions
2017-02-21 20:11:23 -05:00
Dmitry Olshansky
ef0dffab0d
Merge pull request #5119 from aermicioi/issue_17177
...
fix issue 17177. AutoImplement fails on function overload sets with …
2017-02-21 17:37:19 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Alexandru Ermicioi
88f984d5f4
Fixed unittest style problems.
2017-02-13 23:05:40 +02:00
Alexandru Ermicioi
009ec0cf72
Added unittest to bug fix, testing if "parent" is aliased to function overload set.
2017-02-13 22:51:57 +02:00
Bastiaan Veelo
f967356f10
[doc] Typo.
2017-02-13 20:43:34 +01:00
Alexandru Ermicioi
085902b3d6
fix issue 17177. AutoImplement fails on function overload sets with "cannot infer type from overloaded function symbol".
2017-02-12 17:43:40 +02:00
Per Nordlöw
ddebfaf3f0
Make RefCounted pure when possible
...
Acked-by: Per Nordlöw <per.nordlow@gmail.com>
2017-01-31 16:42:19 +01:00
Jack Stouffer
5da61cafac
Merge pull request #5059 from BBasile/issue-11703
...
fix issue 11703, Typedef properties should not be of the original type
2017-01-27 12:53:37 -05:00
Basile Burg
5fedf3503d
fix issue 11703, Typedef properties should not be of the original type
2017-01-27 00:22:50 +01:00
Basile Burg
181db425c9
fix issue 17116 - std.typecons.ReplaceType is not able to process const delegate
2017-01-23 21:51:43 +01:00
Jonathan M Davis
5dc7aa2421
Fix issue #13017 : opEquals for null std.typecons.Nullable
...
I was getting sick of this not working, and there have been multiple bug
reports on this, so I'm just fixing it. With these changes, using == and
!= on null Nullables will not result in an AssertError but instead will
consider them equal if they're both null, equal if they're both non-null
and have the same value, and not equal otherwise.
2017-01-14 11:37:56 -08:00
Sebastian Wilzbach
e67c579f91
Add nullable{,Ref} construction functions
2016-12-23 23:22:21 +01:00
Jack Stouffer
be8713aedb
Merge pull request #4906 from ntrel/tuple-docs
...
Improve tuple-related docs
2016-12-21 10:28:57 -05:00
Nick Treleaven
cfa3077fd8
Tweak docs
2016-12-15 12:32:49 +00:00
Sebastian Wilzbach
c5ba7c7d0b
Style fix: Add whitespace between import colon
2016-12-08 01:46:46 +01:00
Sebastian Wilzbach
df2e72d113
Style fix: add whitespace after if/while
2016-12-08 01:46:46 +01:00
Nick Treleaven
346cad313a
Improve tuple-related docs
...
Use auto instead of ReverseTupleType as that is private.
2016-11-17 16:31:13 +00:00
Martin Nowak
3bed8dfd33
fix gdc-dmd test - remove the workound for Issue 15316
...
- we can't really solve Issue 15316 w/ signaling NaNs
b/c any optimization, copying et.al. might turn signaling into
quiet NaNs, therefor we want to solve Issue 15316 by switching
Float.init to use quiet NaNs
- the workaround depends on a specific dmd bug (see #6163 )
that looses SNaNs when writing struct initializers but keeps
them for Float.init
- this workaround might not be portable to GDC/LDC and
will easily break w/ slightly different dmd optimizations
(it's responsible for the test failure of the gdc-built dmd)
- this PR will reopen https://issues.dlang.org/show_bug.cgi?id=11135
this partially reverts commit 0efa1d3bf9
2016-10-09 03:53:33 +02:00
Andrei Alexandrescu
ace0b93788
Merge pull request #4763 from tmccombs/unique-cleanup
...
Unique cleanup
2016-10-01 00:48:12 -04:00
Walter Bright
e06ee589b9
add 'return' annotation to Tuple.rename()
2016-09-24 17:52:55 -07:00
Andrei Alexandrescu
bf14b1897e
Merge pull request #3797 from Cauterite/issue11135
...
Issue 11135 - Nullable(T, T nullValue) does not support NaN
2016-09-23 16:24:52 -04:00
Jack Stouffer
f10e3fd608
Remove package wide std.algorithm imports from std/typecons.d
2016-09-20 11:05:17 +01:00
Andrei Alexandrescu
b97f0050be
Merge pull request #4043 from John-Colvin/named
...
Add std.typecons.Tuple.rename
2016-09-19 20:23:35 -04:00
John Colvin
657a0ff30f
make sure Tuple method unittests aren't massively duplicated
2016-09-19 18:27:06 +02:00
Thayne McCombs
ae8fa4ed5a
Replace deprecated delete
2016-09-17 22:25:54 -06:00
Thayne McCombs
dcf9faa8dc
Use Proxy instead of opDot
2016-09-17 22:25:54 -06:00
Walter Bright
0fbd57c283
make Proxy.accessibleFrom() work with 'scope' inference
2016-09-11 04:20:10 -07:00
John Colvin
21d65b6a23
test typecons.Tuple.rename for sucessful no-ops, working around bug 16418
2016-09-02 09:11:20 +01:00
John Colvin
f2a49114cc
simplify typecons.Tuple.rename implementation
2016-09-02 09:11:20 +01:00
John Colvin
bc22574fa6
fix std.typecons.Tuple.rename LREFs
2016-09-02 09:11:20 +01:00
John Colvin
ef448f92d2
complete std.typecons.Tuple.rename range example
2016-09-02 09:11:20 +01:00
John Colvin
cb59a64b54
make all std.typecons.Tuple.rename unittests @safe
2016-09-02 09:11:20 +01:00
John Colvin
5c23826279
std.typecons.Tuple.rename return by ref
2016-09-02 09:11:20 +01:00
John Colvin
239e4c8daf
add std.typecons.Tuple.rename
2016-09-02 09:11:20 +01:00
Cauterite
0efa1d3bf9
workaround for bug 11135 (typecons.Nullable)
2016-08-19 23:52:22 +10:00
Cauterite
e50b77fbce
document unittest
2016-07-27 01:41:31 +10:00
Cauterite
52110d98db
appeasing the brace Nazis
2016-07-27 00:18:42 +10:00
Cauterite
052fcc9430
tab -> spaces
...
god forbid anyone have a tab in their code ¬_¬
2016-07-26 22:56:53 +10:00
Cauterite
c0fb999749
make Unique.opDot() inout
...
typecons.Unique.opDot() should be inout to allow use through const access paths.
2016-07-26 22:48:27 +10:00
Atila Neves
270abec779
Add @system and @safe to std.typecons unit tests
2016-07-10 14:30:36 +02:00
Jack Stouffer
dffa714429
Fixed std.algorithm imports in std.typecons to not be package wide
2016-07-02 23:56:36 -04:00
Andrei Alexandrescu
3a0caddfb5
Merge pull request #4483 from WalterBright/typeconsinfer
...
std.typecons: prevent inference of attributes of test cases
2016-06-27 19:48:04 -04:00