Commit graph

5019 commits

Author SHA1 Message Date
unknown
dd1a80c56f Fixup for cycle RangeError invocation
From: #1183 :
Issue 9612: Cycle opSlice should throw when finish > start

Because a RangeError is not actually customizable, and the first argument is actually the file name. The error was producing:
```
core.exception.RangeError@2 > 1(3836): Range violation
```

Now it produces:
```
core.exception.RangeError@std\range.d(3835): Range violation
```
2013-03-10 22:16:12 +01:00
Andrei Alexandrescu
28fad77612 Merge pull request #1192 from AndrejMitrovic/Fix5359
Issue 5359 - isDelegate should work for types and expressions.
2013-03-09 15:58:55 -08:00
Andrej Mitrovic
fd11cb3c97 Merge pull request #1190 from chadjoan/patch-4
Use Lambdas and UFCS in std.algorithm examples.
2013-03-09 09:45:58 -08:00
David Nadlinger
b4f5c4f6dd Merge pull request #1193 from 9rnsr/fix3789
Issue 3789 - Structs members that require non-bitwise comparison not correctly compared
2013-03-09 03:13:38 -08:00
k-hara
3eecfd2b1e fix Issue 3789 - Structs members that require non-bitwise comparison not correctly compared 2013-03-09 16:52:43 +09:00
cjoan
2b67c97066 Use approxEqual for doubles in some examples.
Replaced a few instances of doubles being compared with == in std.algorithm's examples.  They are now compared with approxEqual.  This should encourage better practices, since floating point numbers can experience rounding errors that would make direct equality checks fail in situations where they are expected to work.
2013-03-08 23:53:52 -05:00
Andrej Mitrovic
38aebebeba Merge pull request #1182 from Dicebot/fqn_stringof
fullyQualifiedNameImplForSymbols: .stringof -> __traits(identifier)
2013-03-08 15:37:16 -08:00
Alex Rønne Petersen
3fd69b6ebc Merge pull request #1090 from someboddy/add-ml-style-exception-handling
Add ML style exception handling
2013-03-08 15:23:51 -08:00
IdanArye
370b84f1d5 Added ML style functional exception handling.
Using the new "ifThrown" function in the std.exception module.
2013-03-09 00:13:48 +02:00
Andrej Mitrovic
091a57650b Fixes Issue 5359 - isDelegate should work for types and expressions. 2013-03-08 22:25:57 +01:00
Alex Rønne Petersen
2ad62682c4 Merge pull request #1050 from AndrejMitrovic/Fix9260
Issue 9260 - std.getopt: Implement boolean parsing with optional argument
2013-03-08 10:38:55 -08:00
Alex Rønne Petersen
11848c9482 Merge pull request #1191 from rainers/win.mak
make win*.mak more adjustable to the build environment
2013-03-08 10:04:07 -08:00
Alex Rønne Petersen
9cb2065fe6 Merge pull request #1092 from AndrejMitrovic/Fix6224
Issue 6224 - Add ownerTid() property.
2013-03-08 09:53:48 -08:00
Rainer Schuetze
4f5eae0c38 more quotes tweaking 2013-03-08 16:19:57 +01:00
Rainer Schuetze
b1522ff7b9 avoid "partial" quotes, it breaks forwarding on the command line 2013-03-08 12:54:23 +01:00
Rainer Schuetze
e79c5763cf forgot another replace of make with $(MAKE) 2013-03-08 11:10:06 +01:00
Rainer Schuetze
c7cd8c29a2 make win*.mak more adjustable to the build environment 2013-03-08 10:44:46 +01:00
cjoan
c45e75a97a Use Lambdas and UFCS in std.algorithm examples.
Better represent Lambda syntax and UFCS in the map/filter/reduce examples in std.algorithm.
2013-03-07 21:55:36 -05:00
Andrei Alexandrescu
29e043d461 Fix Issue 4847 - std.algorithm.topN documentation
Converted unittest into an example.
2013-03-07 13:39:47 -05:00
Alex Rønne Petersen
8dbfc1a738 Merge pull request #1178 from denis-sh/add-Issue-9578-workaround-to-std.algorithm.all
Add Issue 9578 workaround to `std.algorithm.all`
2013-03-06 22:15:37 -08:00
Alex Rønne Petersen
93c724f2a3 Merge pull request #1189 from 9rnsr/fix_ctor_qual
Change Nullable ctor to inout
2013-03-06 22:14:51 -08:00
k-hara
526d4571a7 Change Nullable ctor to inout 2013-03-07 13:27:52 +09:00
Jonathan M Davis
30d3d470e7 Merge pull request #1139 from monarchdodra/stdio
Errors vs Exception in stdio
2013-03-06 20:16:45 -08:00
Jonathan M Davis
ef6041d72a Merge pull request #1188 from 9rnsr/fix_ctor_qual
Fix qualifier to call correct constructor
2013-03-06 19:16:22 -08:00
k-hara
4785bc179f Fix qualifier to call correct constructor 2013-03-06 21:36:41 +09:00
Andrei Alexandrescu
f8e2673412 Merge pull request #1187 from AndrejMitrovic/Fix9648
Issue 9648 - Make import to std.random independent of -unittest switch
2013-03-05 06:32:24 -08:00
Andrej Mitrovic
337f268cf1 Fixes Issue 9648 - Make import to std.random independent of -unittest switch. 2013-03-05 05:04:32 +01:00
Andrei Alexandrescu
3d5a203323 Fix Issue 4847 - std.algorithm.topN documentation
This was a quick fix so I'm doing it online.
2013-03-04 18:39:42 -05:00
Jonathan M Davis
ba4095de5f Merge pull request #1185 from AndrejMitrovic/Fix9625
Issue 9265 - assertNotThrown should emit msg from thrown exception if available.
2013-03-02 10:06:01 -08:00
Andrej Mitrovic
e2831a5f2a Fixes Issue 9265 - assertNotThrown should emit msg from thrown exception if available. 2013-03-02 16:16:53 +01:00
Jonathan M Davis
bc4031066a Merge pull request #1183 from eco/patch-1
Issue 9612: Cycle opSlice should throw when finish > start
2013-02-27 20:02:08 -08:00
Brad Anderson
b7d075d555 Cycle opSlice should throw when finish > start
Issue 9612
2013-02-27 18:37:23 -07:00
Dicebot
a269e6eb76 fullyQualifiedNameImplForSymbols: .stringof -> __traits(identifier) 2013-02-27 23:09:29 +02:00
Jonathan M Davis
a59fb24424 Merge pull request #1180 from jmdavis/docs
Fix issue# 9609.
2013-02-27 11:03:31 -08:00
Jonathan M Davis
30d565f432 Fix issue# 9609.
std.string.icmp's markup was wrong.
2013-02-27 10:54:53 -08:00
Denis Shelomovskij
b5ca2ef0c9 Add Issue 9578 workaround to std.algorithm.all
As a result `all` can now be used with nested predicates.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=9578
2013-02-27 17:56:56 +04:00
Hara Kenji
1ad673925a Merge pull request #1177 from 9rnsr/fix9596
Issue 9596 - Ambiguous match is incorrectly hidden by additional lesser match
2013-02-27 03:09:09 -08:00
Andrei Alexandrescu
74cd007c6f Fix issue 4921 - Synopsis code in std.variant documentation throws an assertion error
http://d.puremagic.com/issues/show_bug.cgi?id=4921
2013-02-26 12:04:07 -05:00
k-hara
7dd1ed7a21 fix Issue 9596 - Ambiguous match is incorrectly hidden by additional lesser match 2013-02-27 01:25:28 +09:00
Andrei Alexandrescu
d6af628438 Merge pull request #1159 from quickfur/getopt_optend
Fix issue 9583
2013-02-26 06:54:50 -08:00
jmdavis
978ac725b5 Revert "Merge pull request #1170 from jmdavis/perf"
This reverts commit 684c43dfc5, reversing
changes made to 707a60101b.
2013-02-26 01:18:14 -08:00
Alex Rønne Petersen
684c43dfc5 Merge pull request #1170 from jmdavis/perf
Remove the long-deprecated and undocumented std.perf.
2013-02-25 21:08:27 -08:00
Alex Rønne Petersen
707a60101b Merge pull request #1172 from andralex/5924
Fixes Issue 5924
2013-02-25 20:28:06 -08:00
Alex Rønne Petersen
3e0c5ec7bd Merge pull request #1171 from jmdavis/metastrings
Remove all uses of std.metastrings from Phobos
2013-02-25 20:27:02 -08:00
Andrei Alexandrescu
56c47cecbe Issue 5924 fix 2013-02-25 09:52:00 +02:00
H. S. Teoh
fcc03537cf Improve code based on feedback. 2013-02-24 22:18:35 -08:00
H. S. Teoh
6293612e19 Add unittest. 2013-02-24 22:18:35 -08:00
H. S. Teoh
20cda1eae0 getopt should consume options terminator "--".
As stated by the docs. (Cf. issue 9583)
2013-02-24 22:18:35 -08:00
jmdavis
1360fbed42 Remove the long-deprecated and undocumented std.perf. 2013-02-24 19:43:36 -08:00
jmdavis
2735d30f4e Remove all uses of std.metastrings.Format. 2013-02-24 18:42:46 -08:00