Artifact 935cc3e03ebe462f85a67eb7688dd5106f7d4102:
- File
polemy/_common.d
-
2010-11-07 14:34:29
- part of checkin
[0569f7b8c2]
on branch trunk
- - Added function literal evaluator (i.e., closure).
- Workaround for d2stacktrace's infinite-loop bug.
(when std.demangle.demangle use exception inside it,
it will go into an infinite loop. to avoid this,
I choose to unset TraceHandler during stacktrace generation.
This is far from the complete solution, but at least it should
work as expected under single-thread environment...)
(user:
kinaba)
[annotate]
0000: ef bb bf 2f 2a 2a 0d 0a 20 2a 20 41 75 74 68 6f .../**.. * Autho
0010: 72 73 3a 20 6b 2e 69 6e 61 62 61 0d 0a 20 2a 20 rs: k.inaba.. *
0020: 4c 69 63 65 6e 73 65 3a 20 4e 59 53 4c 20 30 2e License: NYSL 0.
0030: 39 39 38 32 20 68 74 74 70 3a 2f 2f 77 77 77 2e 9982 http://www.
0040: 6b 6d 6f 6e 6f 73 2e 6e 65 74 2f 6e 79 73 6c 2f kmonos.net/nysl/
0050: 0d 0a 20 2a 0d 0a 20 2a 20 22 41 6c 77 61 79 73 .. *.. * "Always
0060: 2d 6f 70 65 6e 64 22 20 6d 6f 64 75 6c 65 73 20 -opend" modules
0070: 69 6e 73 69 64 65 20 50 6f 6c 65 6d 79 2e 0d 0a inside Polemy...
0080: 20 2a 2f 0d 0a 6d 6f 64 75 6c 65 20 70 6f 6c 65 */..module pole
0090: 6d 79 2e 5f 63 6f 6d 6d 6f 6e 3b 0d 0a 70 75 62 my._common;..pub
00a0: 6c 69 63 20 69 6d 70 6f 72 74 20 73 74 64 2e 61 lic import std.a
00b0: 72 72 61 79 3b 0d 0a 70 75 62 6c 69 63 20 69 6d rray;..public im
00c0: 70 6f 72 74 20 73 74 64 2e 72 61 6e 67 65 3b 0d port std.range;.
00d0: 0a 70 75 62 6c 69 63 20 69 6d 70 6f 72 74 20 73 .public import s
00e0: 74 64 2e 61 6c 67 6f 72 69 74 68 6d 3b 0d 0a 70 td.algorithm;..p
00f0: 75 62 6c 69 63 20 69 6d 70 6f 72 74 20 73 74 64 ublic import std
0100: 2e 63 6f 6e 76 20 3a 20 74 6f 3b 0d 0a 70 75 62 .conv : to;..pub
0110: 6c 69 63 20 69 6d 70 6f 72 74 20 73 74 64 2e 62 lic import std.b
0120: 69 67 69 6e 74 3b 0d 0a 70 75 62 6c 69 63 20 69 igint;..public i
0130: 6d 70 6f 72 74 20 73 74 64 2e 65 78 63 65 70 74 mport std.except
0140: 69 6f 6e 3b 0d 0a 70 75 62 6c 69 63 20 69 6d 70 ion;..public imp
0150: 6f 72 74 20 70 6f 6c 65 6d 79 2e 74 72 69 63 6b ort polemy.trick
0160: 73 3b 0d 0a s;..