Robert burner Schadek
d602a5347a
getoptx
...
some tinkering
alot more
comments
some more
more doc
getoptX cleanup
tuple -> struct
getoptX -> getoptEx
Required
getoptEx is now inline
GetoptRslt -> GetoptResult
more info
some comment fixes
2014-06-17 13:48:17 +02:00
k-hara
814d47382b
Revert "Merge pull request #2225 from tom-tan/trusted-stdio-LockingTextWriter-put"
...
It broke win32 build.
This reverts commit dc0b441bb1
, reversing
changes made to 285d027677
.
2014-06-17 18:37:59 +09:00
Dmitry Olshansky
dc0b441bb1
Merge pull request #2225 from tom-tan/trusted-stdio-LockingTextWriter-put
...
Make std.stdio.LockingTextWriter.put and lockingTextWriter @safe
2014-06-17 12:54:19 +04:00
Tomoya Tanjo
b977ea3539
Add static keyword to trustedFPUTC/trustedFPUTWC
2014-06-17 17:43:59 +09:00
Dmitry Olshansky
285d027677
Merge pull request #2250 from SFrijters/master
...
Fix Issue 12921 - Module std.getopt does not respect property syntax
2014-06-14 21:03:10 +03:00
k-hara
5b39ab253c
Make side effect on strongly pure function call
2014-06-14 23:17:44 +09:00
Stefan Frijters
98bf97467a
Fix Issue 12921 - Module std.getopt does not respect property syntax
2014-06-14 13:56:47 +02:00
Dmitry Olshansky
a38148f38e
Merge pull request #2248 from Safety0ff/rebootpr1589
...
Reboot PR #1589 : Fix BitArray.opCmp
2014-06-14 01:17:29 +03:00
safety0ff
00c552dd09
std.bitmanip: BitArray.opcmp unittest improvements by MartinNowak
2014-06-13 17:31:40 -04:00
Nikolay Belov
d0ef5ae5d1
Fix out of bounds.
2014-06-13 17:30:04 -04:00
Nikolay Belov
877ea3ebf2
Use core.bitop.bsf in BitArray.opCmp for more efficient
2014-06-13 17:19:05 -04:00
Nikolay Belov
60111117f5
Fix code review comment: repcace some ifs to one expression
2014-06-13 17:14:22 -04:00
Nikolay Belov
8fbdedee97
Fix codestyle code review comment
2014-06-13 17:14:22 -04:00
Nikolay Belov
16511ad919
Fix BitArray.opCmp
2014-06-13 17:14:22 -04:00
monarch dodra
bb4f8e876b
Merge pull request #2245 from denis-sh/fix-property-enforcements-in-std.range
-mixins
...
Fix property enforcements in `std.range` mixins.
2014-06-13 19:43:53 +02:00
jmdavis
ca72720188
Make std.datetime.SysTime @safe.
2014-06-13 03:39:49 -07:00
jmdavis
e9d970506a
Make time zones @safe.
2014-06-13 03:39:45 -07:00
Denis Shelomovskij
14d914074a
Fix property enforcements in std.range
mixins.
2014-06-13 14:12:55 +04:00
jmdavis
9900470df2
Make std.datetime.DateTime @safe.
2014-06-13 03:00:30 -07:00
jmdavis
93387f0b95
Make std.datetime.TimeOfDay @safe.
2014-06-13 03:00:27 -07:00
jmdavis
75d04b5cf2
Make std.datetime.Date @safe.
2014-06-13 03:00:24 -07:00
Dmitry Olshansky
6ec18c3923
Merge pull request #2242 from denis-sh/get-rid-of-WinAPI-ANSI-functions
...
Get rid of WinAPI ANSI functions
2014-06-13 01:30:01 +03:00
Denis Shelomovskij
a81c4127f2
Use Unicode version of CreateFileMapping
in std.mmfile.MmFile
constructor.
...
It's a bad style to use ANSI WinAPI function and may cause problems in future.
2014-06-12 17:42:09 +04:00
Denis Shelomovskij
176f1246f3
Issue 12898 - std.process.browse
expects URL to be encoded in CP_ACP on Windows instead of UTF-8
...
Use Unicode version of `ShellExecute` in `std.process.browse`.
Also remove needless `ShellExecuteA` declaration.
2014-06-12 17:42:09 +04:00
Denis Shelomovskij
ccdfd1ecca
Remove unused WinAPI ANSI function usages.
2014-06-12 17:22:18 +04:00
monarch dodra
5d202eae71
Merge pull request #2238 from jmdavis/rebindable
...
Make Rebindable @trusted.
2014-06-12 14:13:52 +02:00
jmdavis
73cf16849e
Fix deprecation messages caused by recent changes to Duration.
2014-06-11 20:43:32 -07:00
Tomoya Tanjo
018c3b060f
Make trustedFPUTC and trustedFPUTWC static
2014-06-11 18:36:58 +09:00
jmdavis
8f7e70c2ef
Make Rebindable @trusted.
2014-06-11 01:59:41 -07:00
monarch dodra
9680b8a8e1
Upkeep in outdent
...
Removed "ctfe_strip", use documented unittest, use "stripLeft" over "strip" (preserve trailing spaces), tweak loop indexing, remove ctfe assert.
2014-06-10 19:27:14 +02:00
monarch dodra
240a11ebe3
Merge pull request #2235 from WebDrake/uniform-dchar
...
Fix Issue #12877 : allow uniform() to handle dchar variates
2014-06-10 14:14:36 +02:00
Martin Krejcirik
0812ecd1f6
Fix missing program name in std.process.spawnProcessImpl exception message.
2014-06-10 01:45:33 +02:00
Tomoya Tanjo
80737ad97d
Make trustedFwrite static
2014-06-10 03:34:19 +09:00
Walter Bright
99bfa8ee94
Merge pull request #2231 from economicmodeling/fix_12806
...
Fix #12806
2014-06-09 11:28:56 -07:00
Walter Bright
727fc4d6aa
Merge pull request #2234 from DmitryOlshansky/regex-reuse-sets
...
std.regex - reuse codepoint sets for identical character classes
2014-06-08 17:09:56 -07:00
Joseph Rushton Wakeling
cb5ee35ad6
Fix Issue #12877 : allow uniform() to handle dchar variates
...
Since [dchar.min, dchar.max] does not cover the full bit range of dchar,
optimizations that work for other integral types will fail here, and
result in illegal unicode points being generated.
This fix avoids breaking any existing calls to uniform() via a twofold
approach:
* uniform!"[]"(T.min, T.max) will only call uniform!ResultType if
T is not a dchar;
* uniform!dchar will not try and use the entire bit range but will
instead call uniform!"[]"(dchar.min, dchar.max).
Unittests have been added that should prevent such issues from arising
again.
2014-06-08 18:58:13 +02:00
monarch dodra
5319539b97
Merge pull request #2043 from WalterBright/byChar
...
add byCodeunit, byChar, byWchar and byDchar to std.utf
2014-06-07 15:26:14 +02:00
Dmitry Olshansky
d743a67aaa
Reuse codepoint sets for identical character classes
...
These are very common and blowup memory usage at CTFE (that has no TLS
cache for that).
In any case it makes for slightly more compact memory footprint,
so a net gain regardless.
2014-06-07 15:23:32 +04:00
Justin Whear
98e23d334c
Fix #12806
...
Documentation improvement for `std.traits.isArray` to clarify whether
associative arrays are handled.
Fixes #12806
2014-06-06 09:00:06 -07:00
Dmitry Olshansky
d3fa054a9c
Merge pull request #2188 from Kapps/fix12771
...
Fix issue 12771 - Variant opIndex for static arrays is not implemented.
2014-06-06 11:34:56 +03:00
Walter Bright
0cfc022bfc
add byCodeunit, byChar, byWchar and byDchar to std.utf
2014-06-05 18:19:21 -07:00
k-hara
0a41eb29e0
Supplemental fix for issue 12857
...
The local template function zeroLen is inferred to @system. So it should not be placed directly under the @safe unittest body.
2014-06-05 12:54:16 +09:00
jmdavis
78c2ed05f9
More ref return fixes in std.datetime now that the compiler allows them.
2014-06-03 00:43:54 -07:00
Tomoya Tanjo
f4caebce1a
Make std.stdio.LockingTextWriter.put and lockingTextWriter @safe
2014-06-03 12:02:48 +09:00
Walter Bright
8bf4fd56f4
Merge pull request #2222 from jmdavis/datetime
...
Remove workarounds for some compiler bugs which were fixed
2014-06-02 19:24:51 -07:00
Steven Schveighoffer
c0d185e030
Merge pull request #2217 from tom-tan/trusted-stdio-LockingTextWriter-ctor-dtor-postblt
...
Mark std.stdio.LockingTextWriter.this, ~this and this(this) as @trusted
2014-06-02 15:22:39 -04:00
jmdavis
d03f379009
Fix functions which are supposed to return by ref in Date.
...
Compiler bugs previously prevented these functions from returning by
ref.
2014-06-01 18:32:50 -07:00
jmdavis
7758e81cc0
Fix functions which are supposed to return by ref in SysTime.
...
Compiler bugs previously prevented these functions from returning by
ref.
2014-06-01 18:32:29 -07:00
jmdavis
8c1f68d6e3
Remove now-unneeded workaround for bug# 4866.
2014-06-01 17:36:25 -07:00
monarch dodra
24c4e8f600
Merge pull request #2219 from jmdavis/datetime
...
Fix issue 12828: Fix return type of SimpleTimeZone.utcOffset.
2014-06-01 22:03:51 +02:00