Commit graph

11003 commits

Author SHA1 Message Date
Ilya Yaroshenko
821ccc907b Implicit cast to const slices in case of underlaying range is a pointer. 2016-10-16 18:55:15 +02:00
Ilya Yaroshenko
5ebd773343 reduce test template bloat 2016-10-16 17:14:58 +02:00
Ilya Yaroshenko
52767078cc fix issue 16419 2016-10-16 12:47:04 +02:00
Martin Nowak
f783d975a2 fix Issue 16582 - ParameterDefaults fails w/ scope parameter
- workaround scope escape error to get default parameter
- would require a working `return scope` for a proper implementation
2016-10-16 01:36:27 +02:00
Jonathan M Davis
672662831e Merge pull request #4863 from enckse/patch-1
The word "tranforms" is a typo, should be "transforms"
2016-10-15 12:10:29 -07:00
David Nadlinger
f75b0e030e Merge pull request #4861 from MartinNowak/traits_fixup
remove spurious x identifier in IsExp
2016-10-15 16:26:26 +01:00
Sean Enck
335beff82d The word "tranforms" is a typo, should be "transforms" (especially painful when searching for the word "transforms") 2016-10-15 11:12:28 -04:00
Martin Nowak
c5c1360259 remove unused branch
- variadic template parameters cannot be a function (always need to use func[0])
2016-10-15 16:49:39 +02:00
Martin Nowak
ac7cc674c1 no need to use parameter names to get defaults 2016-10-15 16:49:39 +02:00
Martin Nowak
e46cc8ea25 remove spurious x identifier in IsExp
- gets parsed as is(Type Identifier) but an alias identifier isn't needed
- fixup of ee683ae79f (#2624)
2016-10-15 16:30:26 +02:00
Sebastian Wilzbach
2090d3300d Merge pull request #4842 from ntrel/findSplit-only
[trivial] Add findSplitBefore example with an element using only()
2016-10-14 08:50:56 +02:00
Walter Bright
62d16fd06a Merge pull request #4851 from DmitryOlshansky/regex-faster-htab
[std.regex] Optimize reads from hash table
2016-10-13 17:55:31 -07:00
Jonathan M Davis
dd609e6a6b Merge pull request #4860 from nordlow/no-infinite-make
Restrict making of containers to non-infinite ranges
2016-10-13 14:11:54 -07:00
Per Nordlöw
ad5537d5c9 Restrict making of containers to non-infinite ranges 2016-10-13 16:33:14 +02:00
Vladimir Panteleev
448ddbe2e8 std.socket: Add test for issue 16514 2016-10-13 08:26:47 +00:00
Vladimir Panteleev
b3ea2e4312 Revert "std.socket: Decorate Socket methods"
This reverts commit 1fc5f9b34c.
2016-10-13 08:26:47 +00:00
Walter Bright
9d73ff2353 GetLastError should be imported from core.sys.windows.windows 2016-10-12 20:42:22 -07:00
Stefan Koch
406aa8f8cf Merge pull request #4849 from UplinkCoder/utf_popFront
20% more performance for popFront(char[])
2016-10-12 20:39:57 +02:00
UplinkCoder
8bed6b2843 15% more performance for popFront(char[]) 2016-10-12 20:14:47 +02:00
Johan Engelen
f9e97641cc Fix alignment of std.conv emplacement test buffers. 2016-10-12 12:24:08 +02:00
Dmitry Olshansky
d745fb8ae2 [std.regex] Optimize reads from hash table 2016-10-11 17:28:35 +03:00
Andrei Alexandrescu
71dc211e69 Merge pull request #4848 from andralex/popFront
Tighten popFront
2016-10-10 18:22:31 -04:00
Ilya Yaroshenko
bb2a85994f Merge pull request #4841 from TurkeyMan/ispowerof2
Improved isPowerOf2.
2016-10-10 22:08:42 +02:00
tsbockman
8711a1134d Add Promoted to std.traits. 2016-10-10 12:31:27 -07:00
Andrei Alexandrescu
28b6b462b8 Tighten popFront 2016-10-09 18:04:14 -04:00
Per Nordlöw
0e448d2780 Update primitives.d
Fix typo in explanation.
2016-10-09 22:55:48 +02:00
Martin Nowak
6bbbc6b7a6 Merge pull request #4846 from dlang/stable
merge gdc-dmd fix from stable
2016-10-09 21:40:04 +02:00
Steven Schveighoffer
86ef3a224e Merge pull request #4463 from JackStouffer/issue16073
Partial Fix for Issue 16073 (part 3)
2016-10-09 09:28:22 -07:00
Martin Nowak
df34e4266c Merge pull request #4845 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-10-09 17:38:06 +02:00
Dmitry Olshansky
47adcab045 Merge pull request #4286 from DmitryOlshansky/bitnfa
[std.regex] Bit-NFA kickstart engine
2016-10-09 15:19:54 +02:00
Martin Nowak
74486fee21 Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-10-09 15:00:31 +02:00
Dmitry Olshansky
f8b3eea065 [std.regex] Addressing review comments 2016-10-09 15:35:32 +03:00
Martin Nowak
3bed8dfd33 fix gdc-dmd test - remove the workound for Issue 15316
- we can't really solve Issue 15316 w/ signaling NaNs
  b/c any optimization, copying et.al. might turn signaling into
  quiet NaNs, therefor we want to solve Issue 15316 by switching
  Float.init to use quiet NaNs
- the workaround depends on a specific dmd bug (see #6163)
  that looses SNaNs when writing struct initializers but keeps
  them for Float.init
- this workaround might not be portable to GDC/LDC and
  will easily break w/ slightly different dmd optimizations
  (it's responsible for the test failure of the gdc-built dmd)
- this PR will reopen https://issues.dlang.org/show_bug.cgi?id=11135

this partially reverts commit 0efa1d3bf9
2016-10-09 03:53:33 +02:00
Dmitry Olshansky
d1d53c556c [std.regex] Fixes for recent compiler version 2016-10-07 02:17:40 +03:00
Dmitry Olshansky
cd2c28f402 [std.regex] Trailing whites 2016-10-07 01:43:05 +03:00
Dmitry Olshansky
87847ed480 [std.regex] More tests for issue 9391 2016-10-07 01:41:09 +03:00
Dmitry Olshansky
e98fa4ad5a [std.regex] Fix issue 9391 - const regex, ctRegex is immutable 2016-10-07 01:40:41 +03:00
Nick Treleaven
ae6a8031cf Add findSplitBefore example with an element using only()
Also remove typo.
2016-10-06 12:05:03 +01:00
Manu Evans
0d79b1e124 Improved isPowerOf2. 2016-10-06 15:48:34 +10:00
Steven Schveighoffer
ad739f232e Merge pull request #4840 from MartinNowak/fix16291
fix Issue 16291 - EncodingScheme.create fails
2016-10-05 09:49:20 -07:00
Martin Nowak
9d73d18c0c fix Issue 16291 - EncodingScheme.create fails
- add EncodingScheme.register overload that references the registered class
- just adding the FQN name of a class does not reference that class, so
  it must not end up in the binary and subsequently EncodingScheme.create failed
- This used to work by chance b/c all the EncodingScheme implementations
  were in a module w/ static ctor. Any user of std.encoding did drag in
  that ModuleInfo, which in turn referenced all classes of std.encoding.
  Since moving the static ctor to std.internal.phobosinit to break a
  cycle, the classes were no longer referenced by a ModuleInfo w/ shared
  ctor, so they wouldn't end up in the binary unless explicitly
  referenced elsewhere.
- deprecate the old EncodingScheme.register(string fqn) b/c relying on
  Object.factory is slow, error prone (linkage), and really unnecessary
- import encodinginit in std.encoding so that the
  std_encoding_shared_static_this callback actually gets run
2016-10-05 01:54:22 +02:00
Martin Nowak
ebbdf21a7e fix Issue 16580 - spawnShell segfaults on macOS
- partially Revert "Merge pull request #4493 from schveiguy/fixcycles2"
- recreate processinit (and import it from std.process)
  to call std.process shared ctor w/o creating a cycle
- keep it separate from phobosinit to not drag std.encoding
  into any binary using std.process
2016-10-04 23:56:38 +02:00
Etienne Cimon
856c984b78 Avoid GC Allocations in sharedStaticDtor
The `Thread.opApply` static method will use `realloc` from `core.stdc.stdlib` instead of `gc.gc.GC.malloc` which sometimes fails with `onInvalidMemoryOperationError` when run within a `static ~this` module dtor
2016-10-04 15:04:29 -04:00
Joakim
b4061155cd Fix Issue 16571 - Unittests should not list /tmp/ recursively 2016-10-04 16:26:27 +05:30
Vladimir Panteleev
d6572c2a44 Fix Issue 16587 - split("", "x") should be ""
This reverts commit b438bf5a06.
2016-10-03 22:30:00 +00:00
Dmitry Olshansky
91f0671bc7 [std.regex] rebase on top of latest master, fix shiftor 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
b94a203b0b [std.regex] Re-style pass 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
ecd33f148c [std.regex] Get Bit-NFA working on the testsuite 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
3544686b74 WIP fixing multi-pattern match 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
20c5e399d3 Try to reduce memory usage in CT-regex tests 2016-10-01 20:59:12 +03:00