[Issue 3048] out and invariant contracts is not working for const(C) classes

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3048 Sobirari Muhomori ma...@pochta.ru changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 2933] Cannot return const/immutable with contracts (out/invariant) enabled

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2933 Sobirari Muhomori ma...@pochta.ru changed: What|Removed |Added CC|

bug in std.algoeithm.sort ?

2009-06-04 Thread A.M.
import std.string; import std.array; import std.algorithm; void main() { string[] sa = [TOM,JOE,TOM4,TOM12,TOM6]; sort!(comp)(sa); } bool comp(string x, string y) { string[] s = [x,y]; return isSorted(s); } this code compiles find, but when run gives the following

Re: bug in std.algoeithm.sort ?

2009-06-04 Thread Gide Nwawudu
On Thu, 04 Jun 2009 07:18:33 -0400, A.M. ama...@gmail.com wrote: import std.string; import std.array; import std.algorithm; void main() { string[] sa = [TOM,JOE,TOM4,TOM12,TOM6]; sort!(comp)(sa); } bool comp(string x, string y) { string[] s = [x,y]; return

[Issue 3051] New: Passing alias to member function does not work (1/2)

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3051 Summary: Passing alias to member function does not work (1/2) Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal

[Issue 3052] New: Passing alias to member function does not work (2/2)

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3052 Summary: Passing alias to member function does not work (2/2) Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal

[Issue 3050] Allow exception in CTFE (patch)

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3050 --- Comment #1 from Shin Fujishiro rsi...@gmail.com 2009-06-04 15:37:11 PDT --- Created an attachment (id=391) -- (http://d.puremagic.com/issues/attachment.cgi?id=391) Additional patch Please apply this patch in addition to the first one.

Re: [Issue 3050] New: Allow exception in CTFE (patch)

2009-06-04 Thread Robert Fraser
d-bugm...@puremagic.com wrote: http://d.puremagic.com/issues/show_bug.cgi?id=3050 Summary: Allow exception in CTFE (patch) Product: D Version: 2.030 Platform: x86 OS/Version: All Status: NEW Keywords: patch

[Issue 3050] Allow exception in CTFE (patch)

2009-06-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3050 --- Comment #2 from Shin Fujishiro rsi...@gmail.com 2009-06-04 20:42:46 PDT --- Created an attachment (id=392) -- (http://d.puremagic.com/issues/attachment.cgi?id=392) Patch: scope(success/failure/exit) Supplemental patch to get scope

Re: [Issue 3050] New: Allow exception in CTFE (patch)

2009-06-04 Thread Shin Fujishiro
Robert Fraser fraseroftheni...@gmail.com wrote: Since scope() is defined in terms of try/finally, would it be much harder to get scope(success/failure/exit) working in CTFE? Nope. I forgot about those. :) Thanks!