Re: Assertion failure: '!cases' on line 2620 in file 'statement.c'

2011-01-13 Thread Don
%u wrote: == Quote from Don (nos...@nospam.com)'s article %u wrote: Should I post it as a bug, even though I have no code to accompany it? I have no clue as to where to start my directed search for a minimal case. Can you post the entire source code? It's important that it be reproducible. It

Re: Assertion failure: '!cases' on line 2620 in file 'statement.c'

2011-01-13 Thread %u
== Quote from Don (nos...@nospam.com)'s article > It's in a switch statement somewhere. > It sounds as though this is a bug which involves multiple files, so > it'll be difficult to reduce it. > If you're able to compile DMD, change this line in statement.c line 2620: > Statement *SwitchStatement::

Re: Assertion failure: '!cases' on line 2620 in file 'statement.c'

2011-01-13 Thread Don
%u wrote: == Quote from Don (nos...@nospam.com)'s article It's in a switch statement somewhere. It sounds as though this is a bug which involves multiple files, so it'll be difficult to reduce it. If you're able to compile DMD, change this line in statement.c line 2620: Statement *SwitchStatemen

Re: Assertion failure: '!cases' on line 2620 in file 'statement.c'

2011-01-13 Thread Andrej Mitrovic
On 1/13/11, Don wrote: > The DMD makefile compiles in debug mode by default. It prints some > useless 'fixups' junk. You need to compile with make -fwin32.mak release > or make -flinux.mak release > to make a release compiler. Ugh, I just realized I was using DMD in debug mode by mistake for the

Re: Assertion failure: '!cases' on line 2620 in file 'statement.c'

2011-01-13 Thread %u
== Quote from Don (nos...@nospam.com)'s article > > Yay for first time compiling dmd :) > Sorry you had to do that! Had to learn that once anyway :) Maybe I'll even be able to take a stab at fixing bugs someday..

Re: toDelegate() for D1

2011-01-13 Thread %u
== Quote from Simen kjaeraas (simen.kja...@gmail.com)'s article > %u wrote: > > I only need something to make a void deleg() from a void func(). > This works for me: > ReturnType!( F ) delegate( ParameterTypeTuple!( F ) ) toDelegate( F )( F > fn ) { > return ( ParameterTypeTuple!( F ) args ){

Re: std.container.Array/RefCounted(T) leaking memory?

2011-01-13 Thread Steven Schveighoffer
On Wed, 12 Jan 2011 19:29:30 -0500, Jonathan M Davis wrote: On Wednesday, January 12, 2011 15:29:51 %u wrote: Sorry to bump this up, but is RefCounted(T) really leaking, or am I missing something? I would like to use this in my program, and I'm curious as to why no one responded, since if

Re: std.container.Array/RefCounted(T) leaking memory?

2011-01-13 Thread Jesse Phillips
Steven Schveighoffer Wrote: > But even so, malloc and free have the same property where they don't > always give back memory to the OS. IIUC, Linux can only change the size > of memory it wants, it cannot free pages in the middle of the block. > > -Steve Disclaimer: I don't know what I am t

Re: std.container.Array/RefCounted(T) leaking memory?

2011-01-13 Thread Steven Schveighoffer
On Thu, 13 Jan 2011 12:40:04 -0500, Jesse Phillips wrote: Steven Schveighoffer Wrote: But even so, malloc and free have the same property where they don't always give back memory to the OS. IIUC, Linux can only change the size of memory it wants, it cannot free pages in the middle of the b

Re: std.container.Array/RefCounted(T) leaking memory?

2011-01-13 Thread Jesse Phillips
Thanks very nice info, just two guys babbling about things they've only read I guess, but you seem much better informed. Steven Schveighoffer Wrote: > I think all memory is allocated/deallocated from the OS via the sbrk/brk > system call: > > > brk() and sbrk() change the locati

Re: toDelegate() for D1

2011-01-13 Thread Moritz Warning
On Thu, 13 Jan 2011 17:14:13 +, %u wrote: > == Quote from Simen kjaeraas (simen.kja...@gmail.com)'s article >> %u wrote: >> > I only need something to make a void deleg() from a void func(). >> This works for me: >> ReturnType!( F ) delegate( ParameterTypeTuple!( F ) ) toDelegate( F )( >> F f