Re: Breaking backwards compatiblity

2012-03-09 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jjeqak$f3i$1...@digitalmars.com... On 3/9/2012 9:14 PM, Andrei Alexandrescu wrote: On 3/9/12 8:35 PM, Walter Bright wrote: On 3/9/2012 3:14 PM, bearophile wrote: D will naturally progressively slow down the rhythm of its new

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-09 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.375.1331338580.4860.digitalmar...@puremagic.com... Which is one of the reasons that I really don't like the idea. Sometimes it's nice with strings, but it creates inconsistencies, and stuff like 5.max(7) just seems insane.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-09 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.366.1331335812.4860.digitalmar...@puremagic.com... On Friday, March 09, 2012 16:16:56 Brad Anderson wrote: On Fri, Mar 9, 2012 at 3:56 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Friday, March 09, 2012 17:41:01 Steven

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-09 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:jjengv$agm$1...@digitalmars.com... Insert obligatory link: http://drdobbs.com/184401197 Very insightful article. Jesus christ what the FUCK is wrong with Dr Dobbs? The article shows up *just fine* - *at first*, and

Re: Breaking backwards compatiblity

2012-03-09 Thread Nick Sabalausky
H. S. Teoh hst...@quickfur.ath.cx wrote in message news:mailman.398.1331362435.4860.digitalmar...@puremagic.com... On Sat, Mar 10, 2012 at 01:44:59AM -0500, Nick Sabalausky wrote: Adam D. Ruppe destructiona...@gmail.com wrote in message news:wirsowklisbhbkbuj...@forum.dlang.org... [...] We

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-09 Thread Jonathan M Davis
On Saturday, March 10, 2012 02:21:56 Nick Sabalausky wrote: Jonathan M Davis jmdavisp...@gmx.com wrote in message I'd say that there's a higher chance of the aliases being added than of dur being changed to duration. Changing dur will _definitely_ break code and make using it worse for

Re: The One-Letter Nested Function - a sample article for some kind of

2012-03-09 Thread F i L
On Monday, 13 February 2012 at 14:14:38 UTC, bearophile wrote: Zach the Mystic: void setRandomColorPair( ref ColorPair cp ) { import std.random; ubyte u(int a, int b) { return cast(ubyte) uniform(a,b); } Where possible it's good to add static to nested functions: static ubyte u(in

Re: Assert and the optional Message

2012-03-09 Thread Chris Pons
Ok, thank you for the advice. I will look into it.

Re: Assert and the optional Message

2012-03-09 Thread Chris Pons
Any idea why, system(PAUSE) does work?

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 09:20:33 Chris Pons wrote: Any idea why, system(PAUSE) does work? Because that line never gets run. A failed assertion throws an AssertError which skips everything until it gets handled by the runtime after it exits main. So, if you have assert(condition);

Re: matrix and fibonacci

2012-03-09 Thread newcomer[bob]
On Friday, 9 March 2012 at 05:50:03 UTC, newcomer[bob] wrote: The following is a matrix implementation of the fibonacci algorithm: int fib(int n) { int M[2][2] = {{1,0},{0,1}} for (int i = 1; i n; i++) M = M * {{1,1},{1,0}} return M[0][0]; } problem is I don't really

Re: matrix and fibonacci

2012-03-09 Thread newcomer[bob]
On Friday, 9 March 2012 at 09:22:47 UTC, newcomer[bob] wrote: On Friday, 9 March 2012 at 05:50:03 UTC, newcomer[bob] wrote: The following is a matrix implementation of the fibonacci algorithm: int fib(int n) { int M[2][2] = {{1,0},{0,1}} for (int i = 1; i n; i++) M = M *

Re: Assert and the optional Message

2012-03-09 Thread Mars
On Friday, 9 March 2012 at 07:55:56 UTC, Jonathan M Davis wrote: What you should almost certainly be doing is changing Visual Studio's settings so that it doesn't close the Window when the program exits. I know that it's possible. I've done it, but I rarely use Windows, and I don't remember

Re: Frustrations with const

2012-03-09 Thread Timon Gehr
On 03/08/2012 09:06 PM, H. S. Teoh wrote: On Thu, Mar 08, 2012 at 02:50:50PM -0500, Steven Schveighoffer wrote: On Thu, 08 Mar 2012 14:49:12 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Mar 08, 2012 at 08:22:05PM +0100, Timon Gehr wrote: [...] inout(Slot)* findSlot(Key key)

Re: Can I do an or in a version block?

2012-03-09 Thread Timon Gehr
On 03/09/2012 02:25 AM, Ary Manzana wrote: On 3/8/12 6:11 PM, H. S. Teoh wrote: On Thu, Mar 08, 2012 at 05:56:09PM -0300, Ary Manzana wrote: [...] I don't think it would be hard to implement boolean logic inside version. It's not hard at all. Would it make sense if I make a pull request

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 10:55:10 Mars wrote: On Friday, 9 March 2012 at 07:55:56 UTC, Jonathan M Davis wrote: What you should almost certainly be doing is changing Visual Studio's settings so that it doesn't close the Window when the program exits. I know that it's possible. I've done

Re: Assert and the optional Message

2012-03-09 Thread Regan Heath
On Fri, 09 Mar 2012 08:20:33 -, Chris Pons cmp...@gmail.com wrote: Any idea why, system(PAUSE) does work? As Jonathan says, assert throws AssertError... which means, if you wanted to you could catch it, for example... module asserting; import std.stdio; import core.exception; debug

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: On Wed, Mar 07, 2012 at 11:50:57PM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:37:38 Comrad wrote: On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote: [...] It's not correct. In TDPL it is clearly

Re: Assert and the optional Message

2012-03-09 Thread Mike Parker
On 3/9/2012 4:42 PM, Chris Pons wrote: I am new to D and have been playing around with Assert. I figured that using a message with assert would be very helpful, but unfortunately when the message is printed to the console, the console closes and my program ends. Is there any way to get a more

Re: Assert and the optional Message

2012-03-09 Thread Regan Heath
On Fri, 09 Mar 2012 11:12:44 -, Jonathan M Davis jmdavisp...@gmx.com wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On Fri, 09 Mar 2012 08:20:33 -, Chris Pons cmp...@gmail.com wrote: Any idea why, system(PAUSE) does work? As Jonathan says, assert throws AssertError...

Re: Assert and the optional Message

2012-03-09 Thread Jacob Carlborg
On 2012-03-09 12:12, Jonathan M Davis wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On Fri, 09 Mar 2012 08:20:33 -, Chris Ponscmp...@gmail.com wrote: Any idea why, system(PAUSE) does work? As Jonathan says, assert throws AssertError... which means, if you wanted to you

Re: Assert and the optional Message

2012-03-09 Thread Dmitry Olshansky
On 09.03.2012 11:42, Chris Pons wrote: I am new to D and have been playing around with Assert. I figured that using a message with assert would be very helpful, but unfortunately when the message is printed to the console, the console closes and my program ends. Is there any way to get a more

Re: matrix and fibonacci

2012-03-09 Thread Timon Gehr
On 03/09/2012 06:50 AM, newcomer[bob] wrote: The following is a matrix implementation of the fibonacci algorithm: int fib(int n) { int M[2][2] = {{1,0},{0,1}} for (int i = 1; i n; i++) M = M * {{1,1},{1,0}} return M[0][0]; } problem is I don't really understand how matrix multiplication works

Re: Assert and the optional Message

2012-03-09 Thread Timon Gehr
On 03/09/2012 01:20 PM, Jacob Carlborg wrote: On 2012-03-09 12:12, Jonathan M Davis wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On Fri, 09 Mar 2012 08:20:33 -, Chris Ponscmp...@gmail.com wrote: Any idea why, system(PAUSE) does work? As Jonathan says, assert throws

Re: Can I do an or in a version block?

2012-03-09 Thread Andrej Mitrovic
I have a felling people will end up abusing string mixins to generate version statements, and this will be the exact opposite effect Walter wanted. The same story goes for unittests which can't be independently ran to get a list of all failing unittests, and so people are coming up with their own

Re: Assert and the optional Message

2012-03-09 Thread Jacob Carlborg
On 2012-03-09 15:13, Timon Gehr wrote: On 03/09/2012 01:20 PM, Jacob Carlborg wrote: On 2012-03-09 12:12, Jonathan M Davis wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On Fri, 09 Mar 2012 08:20:33 -, Chris Ponscmp...@gmail.com wrote: Any idea why, system(PAUSE) does work?

Tempfiles in unittests

2012-03-09 Thread Magnus Lie Hetland
I'm testing a class that writes various things to a file, and I'd like to test that behavior, and I'm wondering what the standard solution here is. In Python, I'd just use a StringIO class, for example. It seems sort of impractical to make std.outbuffer to work as a File (even if the

Re: Assert and the optional Message

2012-03-09 Thread Timon Gehr
On 03/09/2012 03:24 PM, Jacob Carlborg wrote: On 2012-03-09 15:13, Timon Gehr wrote: On 03/09/2012 01:20 PM, Jacob Carlborg wrote: On 2012-03-09 12:12, Jonathan M Davis wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On Fri, 09 Mar 2012 08:20:33 -, Chris Ponscmp...@gmail.com

Re: Frustrations with const

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 11:24:46AM +0100, Timon Gehr wrote: On 03/08/2012 09:06 PM, H. S. Teoh wrote: On Thu, Mar 08, 2012 at 02:50:50PM -0500, Steven Schveighoffer wrote: [...] What is type slot, and how is it constructed? This snippit isn't enough to provide help. [...] Slot is a

Re: Frustrations with const

2012-03-09 Thread Adam D. Ruppe
On Friday, 9 March 2012 at 15:30:50 UTC, H. S. Teoh wrote: Yeah, that would be very useful. I think it was actually decided to do that... they made the change for templates already. PS: you might want to take a look at your mutt settings. Your replies seem to have a truncated References

Re: Tempfiles in unittests

2012-03-09 Thread Magnus Lie Hetland
On 2012-03-09 15:08:42 +, bearophile said: Magnus Lie Hetland: It seems that File has no method for reading the entire file contents into a string, so I'd have to read and concatenate lines or chunks or something? There are std.file.read() and std.file.readText(). Yeah, I found

Re: Method invocation -- why it's not working?

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under 5.9.1 Pseudo Members and the @property Attribute: One syntactic problem is that function invocations so far have

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 07:56:15 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under 5.9.1 Pseudo Members and the @property Attribute: One

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 16:07:10 Timon Gehr wrote: On 03/09/2012 03:24 PM, Jacob Carlborg wrote: On 2012-03-09 15:13, Timon Gehr wrote: On 03/09/2012 01:20 PM, Jacob Carlborg wrote: On 2012-03-09 12:12, Jonathan M Davis wrote: On Friday, March 09, 2012 11:03:38 Regan Heath wrote: On

Re: Method invocation -- why it's not working?

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 08:50:36AM -0800, Jonathan M Davis wrote: On Friday, March 09, 2012 07:56:15 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 03:10:00AM -0800, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:03:09 H. S. Teoh wrote: [...] TDPL, p.156, 1st two paragraphs under

Re: Assert and the optional Message

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 08:56:10AM -0800, Jonathan M Davis wrote: On Friday, March 09, 2012 16:07:10 Timon Gehr wrote: On 03/09/2012 03:24 PM, Jacob Carlborg wrote: [...] I still want it to call finally blocks, scope statements, and destructors. I have never actually observed that

Re: [Inline assembler] Sequential `asm` blocks and return via EAX

2012-03-09 Thread Denis Shelomovskij
08.03.2012 14:00, Alex Rønne Petersen пишет: On 08-03-2012 10:42, Denis Shelomovskij wrote: 1. Is there any guaranties that no code will be added between sequential inline assembler blocks, e.g.: --- void f() { static if(x) asm { mov EBX, 3; } else asm { mov EBX, 7; } asm { mov EAX, EBX; } //

Re: Method invocation -- why it's not working?

2012-03-09 Thread Andrej Mitrovic
Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in?

[OT] mutt settings (Was: Re: Frustrations with const)

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 04:39:13PM +0100, Adam D. Ruppe wrote: [...] PS: you might want to take a look at your mutt settings. Your replies seem to have a truncated References header which messes up threading in many clients. Oh really? I don't think I changed any settings related to that.

Re: Method invocation -- why it's not working?

2012-03-09 Thread Andrej Mitrovic
On 3/9/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? Btw, we all know how much Andrei loves generics so why the heck would he care about arrays so much to only give them special

Re: Method invocation -- why it's not working?

2012-03-09 Thread Timon Gehr
On 03/09/2012 07:08 PM, Andrej Mitrovic wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? I think he does not read the D.learn newsgroup.

Re: Assert and the optional Message

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 07:23:20PM +0100, Timon Gehr wrote: On 03/09/2012 05:56 PM, Jonathan M Davis wrote: [...] It was never intended that AssertError or any other Error be particularly catchable, but it's also true that D is a systems programming language, so it'll let you do stuff which is

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 09:59:42 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 08:56:10AM -0800, Jonathan M Davis wrote: On Friday, March 09, 2012 16:07:10 Timon Gehr wrote: On 03/09/2012 03:24 PM, Jacob Carlborg wrote: [...] I still want it to call finally blocks, scope statements, and

Re: Method invocation -- why it's not working?

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 19:13:02 Andrej Mitrovic wrote: On 3/9/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Yeah I understood it as a general concept as well. Probably many people did. Why doesn't Andrei chime in? I don't think that Andrei even pays attention to D.learn.

Re: Tempfiles in unittests

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 16:48:33 Magnus Lie Hetland wrote: On 2012-03-09 15:08:42 +, bearophile said: Magnus Lie Hetland: It seems that File has no method for reading the entire file contents into a string, so I'd have to read and concatenate lines or chunks or something? There

Re: Assert and the optional Message

2012-03-09 Thread Chris Pons
You are right, there is also an option to Pause when program finishes. I never saw it until now. Thank you for all the replies. On Friday, 9 March 2012 at 13:39:02 UTC, Dmitry Olshansky wrote: On 09.03.2012 11:42, Chris Pons wrote: I am new to D and have been playing around with Assert. I

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 19:23:20 Timon Gehr wrote: On 03/09/2012 05:56 PM, Jonathan M Davis wrote: The current implementation may not skip them, but if so, that might actually be a bug. Errors are not intended to be recoverable, so you can't rely on them hitting finally blocks, scope

Re: Tempfiles in unittests

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 01:42:01PM -0500, Jonathan M Davis wrote: On Friday, March 09, 2012 16:48:33 Magnus Lie Hetland wrote: On 2012-03-09 15:08:42 +, bearophile said: Magnus Lie Hetland: It seems that File has no method for reading the entire file contents into a string, so I'd

Re: Tempfiles in unittests

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 11:34:07 H. S. Teoh wrote: On Fri, Mar 09, 2012 at 01:42:01PM -0500, Jonathan M Davis wrote: On Friday, March 09, 2012 16:48:33 Magnus Lie Hetland wrote: On 2012-03-09 15:08:42 +, bearophile said: Magnus Lie Hetland: It seems that File has no method for

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 11:29:43 H. S. Teoh wrote: Hmph. Well, then that defeats the purpose of checking contracts, because checking contracts is only justifiable if it's complex enough, which means that it's liable to involve things like dtors and scope statements. It's silly to want to

Re: Assert and the optional Message

2012-03-09 Thread Timon Gehr
On 03/09/2012 07:37 PM, H. S. Teoh wrote: On Fri, Mar 09, 2012 at 07:23:20PM +0100, Timon Gehr wrote: On 03/09/2012 05:56 PM, Jonathan M Davis wrote: [...] It was never intended that AssertError or any other Error be particularly catchable, but it's also true that D is a systems programming

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 22:03:11 Timon Gehr wrote: On 03/09/2012 08:29 PM, H. S. Teoh wrote: On Fri, Mar 09, 2012 at 01:37:38PM -0500, Jonathan M Davis wrote: On Friday, March 09, 2012 09:59:42 H. S. Teoh wrote: [...] This opens up the question of, what's the *recommended* way of

Re: Assert and the optional Message

2012-03-09 Thread Timon Gehr
On 03/09/2012 10:43 PM, Jonathan M Davis wrote: ... Jonathan is just speculating. And I think he is wrong. Speculating about what? - Jonathan M Davis About how assertion failures affect struct destructors, finally statements and scope statements. If they wouldn't be executed upon thrown

Re: Assert and the optional Message

2012-03-09 Thread Ali Çehreli
On 03/09/2012 03:02 AM, Jonathan M Davis wrote: contorting your program to try and print assert messages to a file just because VisualD has problems with closing the Window on you is a _bad_ idea IMHO. Absolutely! Inserting lines at the end of programs is not the correct solution to the

Why can't I have overloading and generics?

2012-03-09 Thread Caligo
struct B { } struct C { } struct D { } struct A { ref A foo(B item) { /* do something special. */ return this; } ref A foo(T)(T item) if(is(T == C) || is(T == D)) { /* nothing special, do the same for C and D. */ return this;

Re: Why can't I have overloading and generics?

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 21:32:35 Caligo wrote: struct B { } struct C { } struct D { } struct A { ref A foo(B item) { /* do something special. */ return this; } ref A foo(T)(T item) if(is(T == C) || is(T == D)) { /* nothing

Re: Assert and the optional Message

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 22:48:25 Timon Gehr wrote: On 03/09/2012 10:43 PM, Jonathan M Davis wrote: ... Jonathan is just speculating. And I think he is wrong. Speculating about what? - Jonathan M Davis About how assertion failures affect struct destructors, finally statements

Re: Method invocation -- why it's not working?

2012-03-09 Thread Comrad
On Thursday, 8 March 2012 at 08:19:02 UTC, Kapps wrote: On Thursday, 8 March 2012 at 07:53:02 UTC, Jonathan M Davis wrote: It would be nice, but I honestly don't understand the people who think that the lack of it is crippling. It's just one of those nice-to-have features. Most languages

[Issue 7674] regex replace requires escaped format

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7674 --- Comment #1 from Dmitry Olshansky dmitry.o...@gmail.com 2012-03-09 03:30:45 PST --- (In reply to comment #0) When using std.regex.replace the format parameter is also requiring to be a valid regex. Strange. But speaking of format string

[Issue 7676] New: covariance of out arguments and function subtyping doesn't work

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7676 Summary: covariance of out arguments and function subtyping doesn't work Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major

[Issue 7676] covariance of out arguments and function subtyping doesn't work

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7676 Boscop kingbos...@gmail.com changed: What|Removed |Added Priority|P2 |P3

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 Boscop kingbos...@gmail.com changed: What|Removed |Added CC||kingbos...@gmail.com ---

[Issue 7542] inout parameter contravariant should be allowed

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7542 Boscop kingbos...@gmail.com changed: What|Removed |Added CC||kingbos...@gmail.com ---

[Issue 7676] covariance of out arguments and function subtyping doesn't work

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7676 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 7542] inout parameter contravariant should be allowed

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7542 --- Comment #5 from Boscop kingbos...@gmail.com 2012-03-09 11:18:18 PST --- (In reply to comment #4) void fooM(int*); void fooC(const(int)*); void fooI(immutable(int)*); void function(const(int)*) wfp; wfp = fooM; wfp = fooC; wfp = fooI;

[Issue 7632] byValue() for associative arrays doesn't return the correct values

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7632 Erik Johansson Andersson exe...@gmail.com changed: What|Removed |Added Priority|P2 |P3

[Issue 7677] New: obj2asm thinks / starts a switch on non-Windows systems

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7677 Summary: obj2asm thinks / starts a switch on non-Windows systems Product: D Version: unspecified Platform: All OS/Version: Linux Status: NEW Severity:

[Issue 6437] Refcounted calls dtor before ctor, never calls dtor for globals

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6437 Rob Jacques sandf...@jhu.edu changed: What|Removed |Added CC||sandf...@jhu.edu ---

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch --- Comment #5

[Issue 3682] Regression(2.038) is expression fails to match types

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3682 --- Comment #8 from github-bugzi...@puremagic.com 2012-03-09 14:25:02 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

[Issue 3682] Regression(2.038) is expression fails to match types

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3682 --- Comment #9 from github-bugzi...@puremagic.com 2012-03-09 14:27:05 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #6 from Boscop kingbos...@gmail.com 2012-03-09 14:27:43 PST --- (In reply to comment #5) (In reply to comment #4) (In reply to comment #3) We'll need a clear spec of what it means to have inout at two nesting levels of

[Issue 3682] Regression(2.038) is expression fails to match types

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3682 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #7 from timon.g...@gmx.ch 2012-03-09 14:35:05 PST --- (In reply to comment #6) (In reply to comment #5) (In reply to comment #4) From that follows (given two types A,B and B : A): B delegate(immutable(A)) : A

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #9 from timon.g...@gmx.ch 2012-03-09 16:05:28 PST --- (In reply to comment #8) Indeed. The point is that there are two possible interpretations of the opApply signature, and the spec isn't clear on which applies: (a) the

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #10 from Steven Schveighoffer schvei...@yahoo.com 2012-03-09 16:07:27 PST --- (In reply to comment #8) Indeed. The point is that there are two possible interpretations of the opApply signature, and the spec isn't clear on which

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #11 from timon.g...@gmx.ch 2012-03-09 16:16:14 PST --- (In reply to comment #10) We *absolutely* need a new syntax if case (a) is to be included. I agree. -- Configure issuemail:

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #12 from Boscop kingbos...@gmail.com 2012-03-09 16:21:28 PST --- (In reply to comment #7) (In reply to comment #6) (In reply to comment #5) (In reply to comment #4) You can't do: A delegate(inout(A)) dg = (immutable(A)

[Issue 7543] inout opApply should work properly

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543 --- Comment #13 from timon.g...@gmx.ch 2012-03-09 16:36:19 PST --- (In reply to comment #12) I didn't know at first that you wanted to point this out (probably was too distracted by your code example). It seems to me in general that it

[Issue 7469] template mangling depends on instantiation order

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7469 --- Comment #2 from d...@dawgfoto.de 2012-03-09 19:05:41 PST --- https://github.com/D-Programming-Language/dmd/pull/701 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

[Issue 7667] ICE(interpret.c): Assertion failure: 'ctfeStack.stackPointer() == 0'

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7667 --- Comment #2 from github-bugzi...@puremagic.com 2012-03-09 22:12:17 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

[Issue 7667] ICE(interpret.c): Assertion failure: 'ctfeStack.stackPointer() == 0'

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7667 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7110] opSlice() opIndex functions works unstable as template arguments

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7110 --- Comment #5 from github-bugzi...@puremagic.com 2012-03-09 22:22:48 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 7678] New: Add -cflags switch for DMD that allows passing flags to GCC or ${CC}

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7678 Summary: Add -cflags switch for DMD that allows passing flags to GCC or ${CC} Product: D Version: unspecified Platform: All OS/Version: All Status: NEW

[Issue 7678] Add -cflags switch for DMD that allows passing flags to GCC or ${CC}

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7678 --- Comment #1 from Chad Joan chadj...@gmail.com 2012-03-09 23:34:47 PST --- Pull request: https://github.com/D-Programming-Language/dmd/pull/794 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 5278] gentoo's 'hardended' gcc doesn't work with dmd

2012-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5278 Chad Joan chadj...@gmail.com changed: What|Removed |Added Depends on||7678

<    1   2   3