David Simcha
ae16fd1b51
Update std/range.d
2011-12-05 14:25:29 -05:00
dsimcha
36fc2fb922
Fix trivial regression in lockstep caused by DMD enforcing const more strictly.
2011-12-05 10:01:43 -05:00
Andrei Alexandrescu
6ac45d88af
Merge pull request #328 from jmdavis/deprecations
...
Applied deprecations for November 2011.
2011-12-04 13:04:07 -08:00
Andrei Alexandrescu
62349ee641
Merge pull request #347 from klickverbot/master
...
Phobos build fix.
2011-12-04 13:03:16 -08: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
cabdd80769
Make extra std.internal.uni test -property compliant.
...
This was not caught before the merge because the test was disabled until commit eb4bd2bc73
.
2011-12-04 22:01:05 +01:00
David Nadlinger
927f879dba
Linux build fix, was missing from pull 342.
2011-12-04 21:48:43 +01:00
Andrei Alexandrescu
9ffb83e944
Merge pull request #331 from dawgfoto/master
...
extern(C) not needed for vararg any longer
2011-12-04 11:48:27 -08:00
David Nadlinger
130b1ac71c
Whitespace cleanup.
2011-12-04 09:56:14 +01:00
David Nadlinger
62872423cb
Make sure LockingTextReader is an input range.
2011-12-04 09:56:14 +01:00
David Nadlinger
034b7e02bd
Remove unused, private Array helper.
2011-12-04 09:56:14 +01:00
David Nadlinger
ca2a082868
Until.predSatisfied() is a private helper function, mark it as such.
2011-12-04 09:56:14 +01: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
Hara Kenji
0eddab60b9
Merge pull request #343 from Poita/format-size-opt
...
Size optimisations on std.format
2011-12-03 23:36:06 -08:00
Peter Alexander
8eb953ef1e
Raw write fix and more appropriate function names.
...
Moved the raw write back into formatValue as it
would cause issues on big endian systems. Also
renamed formatInt to formatIntegral and formatUInt
to formatUnsigned to better signify their purpose.
2011-12-03 13:01:02 +00:00
David Simcha
063e53c7c3
Merge pull request #332 from dawgfoto/FixEmplace
...
fix bug in emplace
2011-12-02 19:32:18 -08:00
David Simcha
6359876ce2
Merge pull request #335 from alexrp/master
...
Use D_LP64 to make bitness-based decisions, not X86(_64).
2011-12-02 19:30:05 -08:00
k-hara
7db94dbc90
Issue 7055 - to!float("INF2") == 2
2011-12-03 11:27:58 +09:00
David Simcha
e640894182
Merge pull request #337 from kyllingstad/modf-fmod
...
std.math: Fix modf() documentation, add fmod()
2011-12-02 16:03:52 -08:00
David Simcha
4b08ebd45a
Merge pull request #334 from blackwhale/assert-regex
...
Fixing new std.regex
2011-12-02 16:00:21 -08:00
David Simcha
97eb427c5e
Merge pull request #338 from shoo/fix6979
...
Issue 6979 - hasUnsharedAliasing cannot accept plural parameters
2011-12-02 15:34:52 -08:00
Peter Alexander
685ebcdaea
Size optimisations on std.format
...
std.format.formatValue was duplicating a lot of
code when formatting various sized, signed and
unsigned ints, so I shuffled the templates around
to re-use more code. For a Hello World program on
OSX x86 this saved me ~7KB.
2011-12-02 20:50:32 +00:00
Peter Alexander
88ad91f47a
Size optimisation of std.datetime (saves 12KB)
...
Large switch statements have been replaced by data-driven array lookups to reduce the amount of code generated and also improve performance. Using DMD 2.056 on OSX x86 this cuts 12KB off of a Hello World program.
The motivation for this change is to try and reduce the size of small D programs as their large size is a common (and valid) complaint amongst newcomers.
2011-12-01 21:13:16 +00:00
shoo
532674f858
Issue 6979 - hasUnsharedAliasing cannot accept plural parameters
2011-12-01 02:48:09 +09:00
Lars T. Kyllingstad
32dadd0286
std.math: Fix modf() documentation, add fmod()
...
The documentation for std.math.modf() actually describes the fmod()
function of C's math.h, which doesn't have a counterpart in std.math.
This commit adds fmod() and fixes the documentation for modf().
This fixes issue 4765.
2011-11-28 23:38:30 +01:00
alexrp
cf9ddf9836
Drop unnecessary version statement and use size_t.sizeof * 8 instead.
2011-11-28 10:21:51 +01:00
Dmitry Olshansky
6e7c54f4d3
Missing assert with the same alignment check
2011-11-28 00:06:13 +04:00
alexrp
6460899b8a
Use D_LP64 to make bitness-based decisions, not X86(_64).
2011-11-27 16:11:23 +01:00
Dmitry Olshansky
d1be62eab5
More conservative alignment check in ShiftOr
2011-11-27 14:15:45 +04:00
Dmitry Olshansky
eb4bd2bc73
std.regex: assertion on wrong escapes inside []
...
also enable extra test in std.internal.uni
2011-11-27 13:45:15 +04:00
Brad Roberts
3980990974
fix 32 vs 64bit-ism in bituintcore.d
2011-11-26 14:42:31 -08:00
dawg
4c4f521d6b
fix bug in emplace
...
- need to slice buffer if it's bigger than the classInstanceSize
2011-11-26 17:01:33 +01:00
dawg
2436b856b9
extern(C) not needed for vararg
...
- misleading to have extern(C) member functions
2011-11-26 16:45:26 +01:00
k-hara
3331f1fe97
Issue 6973 - static assert(isOutputRange!(OutputRange!int, int)) is false
2011-11-25 19:45:10 +09:00
Richard Webb
caa43790d7
add missing import of std.stdio
2011-11-24 18:29:53 +00:00
jmdavis
5d90bc3f10
Minor fix to deprecation message on std.string.splitLines.
...
http://d.puremagic.com/issues/show_bug.cgi?id=6990
2011-11-22 19:04:03 -08:00
Denis Shelomovskij
bee2f5a380
Convert unnecessary functions to templates
2011-11-22 15:28:59 +03:00
jmdavis
afb5a1c7ce
Applied deprecations for November 2011.
2011-11-21 00:24:57 -08:00
jmdavis
b4751aae0b
Deprecated overloads for std.conv.to which use typedef.
2011-11-20 05:19:00 -08:00
jmdavis
1d54bfafb9
Removed typedef tests in std.conv.
...
Now that typedef has been deprecated, having it in std.conv's tests
results in any code which imports std.conv and builds with -unittest
having to build with -d, which is unacceptable IMHO. I don't like
getting rid of the tests, but they were passing, and presumably, the
overloads of std.conv.to which use typedef will be deprecated shortly as
well.
2011-11-20 05:09:44 -08:00
jmdavis
100733041f
Made core.thread import in std.file non-selective.
...
Bug# 314 just makes it create import conflicts when compiling with
-unittest. It works just as well (better given bug# 314) as a normal
import.
2011-11-14 20:27:53 -08:00
Denis Shelomovskij
e8712ed9e1
Documentation and struct staticness in std.algorithm fixes
2011-11-14 17:10:19 +03:00
k-hara
1eba4fa9bb
Fix std/internal/uni for Posix unit test breaking
2011-11-14 19:15:52 +09:00
Walter Bright
eaeb1a1516
Merge pull request #325 from klickverbot/file-osx64
...
Fix std.file on OS X x86_64.
2011-11-14 02:01:09 -08:00
k-hara
fa5794770a
Issue 6902 - Different "pure nothrow int()" types
2011-11-14 17:48:22 +09:00
jmdavis
9824a5bbae
Added a clarifying note to std.file.symlink.
2011-11-13 17:17:22 -08:00
k-hara
58170c198c
Revert "Issue 6902 - Different "pure nothrow int()" types"
...
This reverts commit d26c719634
.
The pull 322 was merged in an accident, and it breaks Phobos.
2011-11-14 09:07:14 +09:00
Kato Shoichi
bd5141b027
Merge pull request #324 from 9rnsr/fix6935
...
Issue 6935 - struct with @disable this cannot make range
2011-11-13 08:04:14 -08:00
k-hara
5e83c0020d
Issue 6935 - struct with @disable this cannot make range
2011-11-13 17:04:19 +09:00
Andrei Alexandrescu
703f612973
Fixed wrong C library lookups
2011-11-12 21:55:22 -06:00