Commit graph

3362 commits

Author SHA1 Message Date
k-hara
52462bec6e fix Issue 7909 - to!(enum)(string) and to!(string)(enum) break when enum is integral 2012-05-12 20:06:29 +09:00
Hara Kenji
c27262cdb9 Merge pull request #536 from Aatch/std-format-changes
Std format changes
2012-05-12 02:52:19 -07:00
k-hara
51bdc47190 Change scoped to "Voldemort Type" 2012-05-12 18:38:09 +09:00
Lambert
66c886a4f1 Mehrdad's first commit, mainly as a test. Changed filter()'s structure to FilteredRange to give better error messages. 2012-05-11 16:20:26 -07:00
Andrei Alexandrescu
650609be9b Added reference to binary search 2012-05-11 16:39:50 -05:00
Jonathan M Davis
98b34a285a Merge pull request #556 from dawgfoto/improveRBTree
Improve rb tree
2012-05-11 10:37:40 -07:00
Lars T. Kyllingstad
029440c2f9 Removed asm code from std.complex.expi() 2012-05-11 19:08:12 +02:00
k-hara
8362970a56 Small fix for documentation. 2012-05-12 01:21:33 +09:00
David Nadlinger
477bc02658 Removed default parameters for SetFunctionAttributes.
They were hardly useful and deemed potentially confusing, because not specifying them did not mean that no change should occur, which would arguably be the expected behavior.
2012-05-11 16:27:14 +02:00
David Nadlinger
9c32cd71e2 Clarified that SetFunctionAttributes accepts a combination of FunctionAttributes. 2012-05-11 16:27:02 +02:00
David Nadlinger
c1d3d745c2 Added "System" linkage to SetFunctionAttributes.
It is not clear whether the accepted linkage types should be restricted at all; currently, the set of acceptable names is strictly specified in the grammar, but it is conceivable that other compiler implementations provide additional types, e.g. extern(Java), which SetFunctionAttributes could work with as well without any required changes. However, without the restriction, mistyped arguments would potentially give users a confusing error message in string mixin code…
2012-05-11 16:13:44 +02:00
David Nadlinger
26c7cb27e9 Added SetFunctionAttributes. 2012-05-11 16:06:46 +02:00
Joseph Rushton Wakeling
205c3bf4cb Fix problem of first sample point always being identical. 2012-05-09 20:57:52 +02: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
Kato Shoichi
892038953d Merge pull request #572 from 9rnsr/fix_move
Issue 8055 & 8057 - Fix std.algorithm.move issues
2012-05-08 10:13:12 -07:00
k-hara
9d02596a50 Optimize unary move(). 2012-05-09 01:22:13 +09:00
Andrei Alexandrescu
36f5539e0a Merge pull request #557 from Chabsf/master
Issue 4744:  std.conv: string->enum doesn't look for longer match
2012-05-07 20:38:25 -07:00
k-hara
947ff51007 Support %-( ... %) and add documentation. 2012-05-08 10:07:37 +09:00
k-hara
af50634ea7 Use endsWith. 2012-05-08 09:45:53 +09:00
Denis Shelomovskij
2503b18d1c Fix Issue 6580 - scoped classes are aligned incorrectly 2012-05-07 23:08:36 +04:00
Hara Kenji
cc636bea73 Merge pull request #569 from denis-sh/scoped-bug8039-fix
Fix Issue 8039 - `scoped` doesn't call any elaborate destructors for struct fields
2012-05-07 09:36:12 -07: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
Hara Kenji
0e42d76509 Merge pull request #568 from denis-sh/hasElaborateDestructor-fix
Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor
2012-05-06 23:57:10 -07:00
k-hara
dc6fb32f87 fix Issue 8057 - std.algorithm.move cannot use for nested struct 2012-05-07 12:33:24 +09:00
k-hara
279963c9d0 fix Issue 8055 - std.algorithm.move corrupts moved object field 2012-05-07 12:05:01 +09:00
Denis Shelomovskij
a6e38e3472 Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor 2012-05-06 19:10:24 +04:00
Jonathan M Davis
5bbfed888b Merge pull request #523 from denis-sh/improve-isInfinite
Change C++ style CT test to D style, make unittests CT
2012-05-06 01:10:11 -07:00
Jonathan M Davis
88d00a04b9 Merge pull request #516 from jacob-carlborg/xml
Fix: Incorrect indentation using std.xml.pretty.
2012-05-06 00:59:33 -07:00
Jonathan M Davis
ee4d7c36e8 Merge pull request #514 from CyberShadow/std-md5-example-bufsize
std.md5: Lower buffer size in mdFile example
2012-05-06 00:57:57 -07:00
Jonathan M Davis
cf2edb613a Merge pull request #513 from CyberShadow/std-file-windows-attributes
std.file: Use GetFileAttributesEx to query file attributes on Windows
2012-05-06 00:56:50 -07:00
Joseph Rushton Wakeling
5f539a1622 Fix link errors in Ddoc comments. 2012-05-04 20:19:44 +02:00
Joseph Rushton Wakeling
d7f5bb0aa5 Small typo correction in comment/doc. 2012-05-04 20:07:10 +02:00
Joseph Rushton Wakeling
40a79b32e2 RandomSample should check if input is InputRange. 2012-05-04 19:04:52 +02:00
Joseph Rushton Wakeling
56ef13997e Bring code in line with D style. 2012-05-04 14:22:34 +02:00
Denis Shelomovskij
ca7e6254ed Small ddoc fix 2012-05-04 15:20:59 +04:00
Denis Shelomovskij
888420f805 Add unittests for using signals in a derived classes 2012-05-04 14:59:15 +04:00
Denis Shelomovskij
05a8f316e7 Fix Issue 8031 - If a class have some signals it's impossible for a derived class to have any signals
All `Signal` methods should be `final` because if they aren't it's impossible to add any signals into a derived class.

And yes, lets make `Signal` a `mixin template`.
2012-05-04 14:59:15 +04:00
Joseph Rushton Wakeling
39bc5ae412 skip() and skipA() should not be called as properties.
Ensures code builds with -property and -unittest flags
both enabled.
2012-05-04 12:56:59 +02:00
Brad Anderson
ebcba68f7b fix Issue 7982 - unsigned reverse iota broken
iota.length needs to take into account unsigned values when the end is greater
than the start.
2012-05-04 00:25:25 -06:00
Jonathan M Davis
2f27238833 Merge pull request #538 from nhkcon/patch-1
fix simple example
2012-05-03 21:55:50 -07:00
Jonathan M Davis
93c92e1295 Merge pull request #560 from kyllingstad/tempdir
std.file.tempDir()
2012-05-03 21:38:55 -07:00
jmdavis
76def7af85 Fix Issue# 8026.
I added template constraints to all of the templates missing template
constraints in std.random - including randomShuffle, per the bug.
2012-05-03 19:47:15 -07:00
jmdavis
088a228b34 Fixed incorrectly named enum. 2012-05-03 19:40:40 -07:00
jmdavis
1b14818170 Fixed incorrect braces in std.random. 2012-05-03 19:13:23 -07:00
jmdavis
cdd6a858b5 Remove unneeded C stuff and trailing whitespace from std.random. 2012-05-03 19:00:17 -07:00
Denis Shelomovskij
350a8f263d Do not call getcwd (or other base) in absolutePath and relativePath if not needed. 2012-05-03 17:37:19 +04:00
Lars T. Kyllingstad
9522e7bc62 Removed superfluous 'static'
It was left over from an attempt to declare a WinAPI function inside a D
function (which unfortunately didn't work).
2012-05-03 01:52:30 +02:00
Lars T. Kyllingstad
87dfaa82db Merge pull request #564 from donc/bigint8011
Fix issue 8011 BigInt ++ and -- do wrong thing on negative numbers
2012-05-02 16:44:48 -07:00
Lars T. Kyllingstad
b630804e81 Fix broken std.file.rmdirRecurse() unittest
'ln' gave an error, because "/tmp" is already included in deleteme.
2012-05-03 01:15:49 +02:00
Lars T. Kyllingstad
4204c32532 Removed the tempFile() unittest
This is mainly because it could be nice to use tempFile() in other
unittests.  Since tempFile() caches its return value, it would return
the test value ("/") for any other unittest that follows it.
Alternatively, if the other unittest(s) get run first, tempFile()'s
would fail.
2012-05-03 01:05:39 +02:00