Re: Internal delegate and Stack Overflow

2008-11-28 Thread BCS
Reply to TSalm, Yes, you are right. But this is an example code. The "true" code uses delegates with argument which differs from called functions, so I can't point delegate directly to them. And this anonymous function's way is really fastest to code... I must waiting for a D2 stable version ;-)

Re: Internal delegate and Stack Overflow

2008-11-28 Thread tsalm
Le Sat, 29 Nov 2008 01:08:28 +0100, BCS <[EMAIL PROTECTED]> a écrit: Reply to TSalm, Hello, I would do something like this, but this return me an execution error : object.Exception: Stack Overflow // CODE class A { void delegate() dg; void doIt() { dg(); } } class B { A a; th

Re: Internal delegate and Stack Overflow

2008-11-28 Thread BCS
Reply to TSalm, Hello, I would do something like this, but this return me an execution error : object.Exception: Stack Overflow // CODE class A { void delegate() dg; void doIt() { dg(); } } class B { A a; this() { a = new A; a.dg = { doSomething(); }; } void doSomething() { } }

Internal delegate and Stack Overflow

2008-11-28 Thread tsalm
Hello, I would do something like this, but this return me an execution error : object.Exception: Stack Overflow // CODE class A { void delegate() dg; void doIt() { dg(); } } class B { A a; this() { a = new A; a.dg = { doSomething(); }; } void doSomething() { }

Re: custom opCmp for array sort

2008-11-28 Thread Kagamin
just found it accidentally http://d.puremagic.com/issues/show_bug.cgi?id=1309

Re: custom opCmp for array sort

2008-11-28 Thread New
Small correction, the code I posted works with D1.0 but not with D2.0. What do I need to change to make it work with D 2.0? is it better to use D 2 or D 1? sorry for crossposting, I started my questions on the D group but I was instructed to ask here. thanks New Wrote: > Hello, > > I or

custom opCmp for array sort

2008-11-28 Thread New
Hello, I originally posted this question to the wrong group, I am trying here as suggested. I am new with D and am stuck with something I hope somebody can help me with it. I am trying sort an array of paths which can take the two following forms: /usr---> normal path /bin=/othe