Commit graph

5569 commits

Author SHA1 Message Date
k-hara
41098e3f49 [appender] Reuse ensureAddable for reserve implementation
AFAICS, they have mostly same code.
2013-06-20 10:54:33 +09:00
k-hara
92bef24f2f fix Issue 10254 - Purity correctness is broken with constructor 2013-06-20 10:54:30 +09:00
k-hara
bf71d1e067 [Refactoring] Define enforceFmt 2013-06-20 10:54:27 +09:00
k-hara
3427857948 [Refactoring] Delaying throwing Exception makes control flow analysis simple 2013-06-20 10:54:25 +09:00
k-hara
ed03c4af01 Fix trivial nitpicks 2013-06-20 10:54:20 +09:00
Andrei Alexandrescu
fdbf4f32c1 Merge pull request #1350 from 9rnsr/fix10377
Issue 10377 - std.typecons.wrap doesn't consider private members
2013-06-19 17:35:38 -07:00
Hara Kenji
9eccf5d2e7 Merge pull request #1349 from monarchdodra/privateConv
Make conv unittest private simbols private
2013-06-19 17:33:52 -07:00
monarch dodra
0adb9524d6 Make conv unittest private simbols private
There were some symbols in a "version(unittest)" block that were not declared private.

This can create some conflicts during unittest releases. I started out just declaring them private, but that created some ambiguities in other modules that used "A" in their names, eg:
```D
struct Appender(A : T[], T)
```

`std\array.d(2129): Error: module std.array std.conv.A is private`.

So I just mangled the names. As a workaround. I'll file a bug report later.
2013-06-19 23:48:54 +02:00
jmdavis
378fe78352 Implement issue# 10314.
This moves std.traits.unsigned to std.conv and adds std.conv.signed,
since for some reason, we have std.traits.unsigned but do not have
std.traits.signed.
2013-06-19 08:47:41 -07:00
Andrei Alexandrescu
631e276740 Merge pull request #1351 from jordisayol/patch-1
Fix shared library SONAME
2013-06-19 07:08:55 -07:00
Andrei Alexandrescu
aa4d498466 Merge pull request #1354 from irritate/issue_10130
Issue 10130 - Fix compile error when calling map on iota with const step...
2013-06-19 07:07:34 -07:00
irritate
5521cca32a Just call Unqual once after CommonType. 2013-06-18 21:30:45 -04:00
irritate
7f000bb980 Remove unnecessary mixin in static assert. 2013-06-18 21:21:36 -04:00
irritate
ebe93db8c1 Issue 10130 - Fix compile error when calling map on iota with const step.
Also fixed the similar issue for iota with const begin/end/step floats.
2013-06-18 20:53:12 -04:00
Hara Kenji
6054d6a3c3 Merge pull request #1346 from Dicebot/fix10355
Fix 10355: fullyQualifiedName was handling enums as other basic types
2013-06-18 15:10:02 -07:00
Andrej Mitrovic
b397688905 Merge pull request #1353 from 9rnsr/fix10334
Supplemental fix for issue 10334
2013-06-17 17:49:54 -07:00
Hara Kenji
802dac365d Merge pull request #1352 from klickverbot/fix-exception-test
Fix std.exception.ifThrown tests in release mode.
2013-06-17 06:02:25 -07:00
k-hara
920c3c1344 Supplemental fix for issue 10334 2013-06-17 20:42:36 +09:00
David Nadlinger
fcfc3220ff Fix std.exception.ifThrown tests in release mode.
As the unit test is not @safe, bounds checking is disabled
when building with -release.
2013-06-17 13:35:08 +02:00
Jordi Sayol
a9d8ebe4b1 Fix shared library SONAME 2013-06-17 10:16:45 +02:00
k-hara
cc4cf0ca15 fix Issue 10377 - std.typecons.wrap doesn't consider private members 2013-06-17 14:52:13 +09:00
Jonathan M Davis
af14a7f0aa Merge pull request #1277 from monarchdodra/9975
Fix Issue 9975 - pointsTo asserts because of false pointer in union
2013-06-16 13:51:30 -07:00
monarch dodra
dfb8c27bb2 Improve documentation/testing for pointsTo 2013-06-16 20:35:27 +02:00
Andrei Alexandrescu
201e5c2dd1 Merge pull request #1342 from WebDrake/randomsample-popfront
Issue 10269 - RandomSample should use popFrontExactly, not popFrontN ...
2013-06-16 11:00:12 -07:00
Joseph Rushton Wakeling
bc386eed72 Spread long statements across several lines. 2013-06-16 15:53:46 +01:00
Joseph Rushton Wakeling
643a2565a1 More formatting corrections. 2013-06-16 15:48:15 +01:00
monarch dodra
e44adcd9ed Fix Issue 9975 - pointsTo asserts because of false pointer in union 2013-06-16 16:39:56 +02:00
Joseph Rushton Wakeling
22d26ef8c1 Simplify assert conditions. 2013-06-16 15:26:56 +01:00
Joseph Rushton Wakeling
91b2c664c7 Fix up spacing and brackets for if statements. 2013-06-16 15:21:04 +01:00
Jonathan M Davis
22c75c7904 Merge pull request #1313 from klickverbot/mingw-format
Adjust floating point formatting tests for MinGW
2013-06-16 04:30:27 -07:00
David Nadlinger
5465e59779 Adjust floating point formatting tests for MinGW.
As far as I am aware, the C standard doesn't make any
guarantees about what the leading digit in the hex formats
is, nor about the number of exponent digits displayed by
default.

We should look into replacing the functions with our own
implementations to provide consistent behavior independent
of the host C runtime library, and potentially also allowing
the functionality to be used from CTFE.
2013-06-16 13:13:50 +02:00
Dicebot
517b3af59e Fix 10355: Moved test case to proper block, added one for enum member 2013-06-14 13:22:23 +02:00
Dicebot
91d549ccae Fix 10355: fullyQualifiedName was handling enums as other basic types 2013-06-14 10:04:11 +02:00
Daniel Murphy
23d15e2fcb Merge pull request #1263 from denis-sh/std.json-improvements-3
Add formatting option to `std.json.toJSON`.
2013-06-12 16:46:40 -07:00
Denis Shelomovskij
a6afc98eeb Add formatting option to std.json.toJSON.
This allows JSON to be used as a temporary serialization format when debugging an application as it becomes human- and diff-readable.

Empty JSON object/array is formatted as "{}"/"[]".
2013-06-12 16:28:06 +04:00
Hara Kenji
d13c4323db Merge pull request #1344 from CyberShadow/patch-4
std.typecons: Fix typo in Rebindable example
2013-06-11 23:29:25 -07:00
Vladimir Panteleev
b014d940cf std.typecons: Fix typo in Rebindable example 2013-06-12 04:19:30 +00:00
Walter Bright
28189ff131 Merge pull request #1343 from AndrejMitrovic/Fix10317
Issue 10317 - Remove text(range) check and avoid recursive instantiation bug.
2013-06-10 09:41:15 -07:00
Andrej Mitrovic
8f5f220194 Fix Issue 10317 - Remove text(range) check and avoid recursive instantiation bug. 2013-06-10 15:12:53 +02:00
Joseph Rushton Wakeling
ca7abe9454 Indentation corrections. :-( 2013-06-09 16:34:05 +02:00
Joseph Rushton Wakeling
a998d02498 RandomSample assertions to ensure skip sizes respect number of items remaining. 2013-06-09 16:18:53 +02:00
Andrei Alexandrescu
e9d5202062 Merge pull request #1340 from 9rnsr/fix10268
[REG2.063] Issue 10268 - std.typecons.Nullable!JSONValue - error instantiating
2013-06-09 06:51:18 -07:00
Joseph Rushton Wakeling
8da0f13596 Issue 10269 - RandomSample should use popFrontExactly, not popFrontN, when skipping across input range
This small tweak has been accompanied by a couple of extra checks
to ensure that users do not request more sample points than are
available in the input, which could otherwise be the source of
exceptions.

There exists one remaining case where RandomSample may fail: if it
is given an InputRange without the .length property, and the user
indicates that the total number of items available is greater
than what the InputRange actually contains.  In this case an
exception is thrown from std.array.popFront() line 450,
"Attempting to popFront() past the end of an array", or from
std.array.front() line 624, "Attempting to fetch the front of an
empty array."
2013-06-09 15:23:30 +02:00
k-hara
2c1b1ffdca fix Issue 10268 - std.typecons.Nullable!JSONValue - error instantiating 2013-06-09 16:19:09 +09:00
Andrei Alexandrescu
783902cafb Merge pull request #1332 from WebDrake/randomsample-save
Issue 10265 - RandomSample fails when passed an InputRange as input
2013-06-07 12:06:25 -07:00
Andrei Alexandrescu
db7e325f6d Merge pull request #1290 from blackwhale/regex-9634
Workaround issue 9634
2013-06-07 10:53:51 -07:00
Hara Kenji
ea97f5b6c0 Merge pull request #1334 from denis-sh/improve-Issue-10220-fix
Improve Issue 10220 fix.
2013-06-05 08:32:41 -07:00
Denis Shelomovskij
51a5bad3e6 Improve Issue 10220 fix.
Improves pull #1329.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=10220
2013-06-05 18:43:47 +04:00
Walter Bright
7b0a1219fd Merge pull request #1329 from 9rnsr/fix10220
[REG2.064a] Issue 10220 - `array` doesn't work with disabled default construction
2013-06-04 22:30:00 -07:00
Hara Kenji
977947e732 Merge pull request #1331 from 9rnsr/fix1983
Supplemental change for Issue 1983 - Delegates violate const
2013-06-04 14:57:20 -07:00