Re: FIFO stack

2011-10-27 Thread Nick Sabalausky
"Ary Manzana" wrote in message news:j8buhd$1s80$1...@digitalmars.com... > On 10/27/11 8:38 AM, Nick Sabalausky wrote: >> "Ary Manzana" wrote in message >> news:j89gle$9nn$1...@digitalmars.com... >>> On 10/26/11 1:28 PM, Jonathan M Davis wrote: On Wednesday, October 26, 2011 09:00 Dominic Jo

Re: package access specifier not usable within a class

2011-10-27 Thread SourceCode
But what if i had something like this: abstract class A { package: abstract void _test() const; } class B : public A { package: override void _test() const { writeln("Call B::test"); } } class C { public: void do_something(const B b) { b._test(); } } That only work if i d

Re: gtkD problems and general gui question.

2011-10-27 Thread Adrian Mercieca
On Mon, 24 Oct 2011 13:15:57 +0200, Jordi Sayol wrote: > Al 23/10/11 07:35, En/na Adrian Mercieca ha escrit: >> Hi all, >> >> I would be interested in having a closer look at gtkD. Is there any >> documentation/tutorial available anywhere? >> >> Thanks. >> >> > Here You can find a GtkD tutoria

Re: An issue with setting delegates via templates

2011-10-27 Thread Andrej Mitrovic
So it seems this is an issue with a newer signals implementation. The old one works: import std.signals; struct Foo { mixin Signal!(int) sig; } class Bar { void x(string) { } void x(int) { } } void main() { Foo foo; auto bar = new Bar; foo.sig.connect(&bar.x); foo.si

Re: FIFO stack

2011-10-27 Thread Ary Manzana
On 10/27/11 8:38 AM, Nick Sabalausky wrote: "Ary Manzana" wrote in message news:j89gle$9nn$1...@digitalmars.com... On 10/26/11 1:28 PM, Jonathan M Davis wrote: On Wednesday, October 26, 2011 09:00 Dominic Jones wrote: Also an plain array is a good stack. :) I'd rather not use a plain array

Re: Implicit cast to immutable

2011-10-27 Thread Christophe
"Steven Schveighoffer" , dans le message (digitalmars.D.learn:30255), a écrit : > On Fri, 21 Oct 2011 11:20:01 -0400, Christophe > wrote: > >> "Daniel Murphy" , dans le message (digitalmars.D.learn:30139), a écrit : >>> "bearophile" wrote in message >>> news:j7jepi$prp$1...@digitalmars.com...

Re: An issue with setting delegates via templates

2011-10-27 Thread Christophe
Andrej Mitrovic , dans le message (digitalmars.D.learn:30286), a écrit : > class Foo > { > void func(double) { } > void func(int) { } > > void set(T)(T handler) { dg = handler; } > void delegate(int) dg; > } > > void main() > { > auto foo = new Foo; > foo.set(&foo.func);

Re: FIFO stack

2011-10-27 Thread Steven Schveighoffer
On Thu, 27 Oct 2011 08:00:31 -0400, Nick Sabalausky wrote: "Dominic Jones" wrote in message news:j89arh$2ua3$1...@digitalmars.com... Also an plain array is a good stack. :) I'd rather not use a plain array because (I assume) that when I push or pop using arrays, a swap array is created to r

Re: FIFO stack

2011-10-27 Thread Christophe
"Nick Sabalausky" , dans le message (digitalmars.D.learn:30309), a écrit : > "Dominic Jones" wrote in message > news:j89arh$2ua3$1...@digitalmars.com... >>> Also an plain array is a good stack. :) >> >> I'd rather not use a plain array because (I assume) that when I push >> or pop using arrays,

Re: FIFO stack

2011-10-27 Thread Nick Sabalausky
"Dominic Jones" wrote in message news:j89arh$2ua3$1...@digitalmars.com... >> Also an plain array is a good stack. :) > > I'd rather not use a plain array because (I assume) that when I push > or pop using arrays, a swap array is created to resize the original. > If this is not the case, then an a

Re: FIFO stack

2011-10-27 Thread Nick Sabalausky
"Ary Manzana" wrote in message news:j89gle$9nn$1...@digitalmars.com... > On 10/26/11 1:28 PM, Jonathan M Davis wrote: >> On Wednesday, October 26, 2011 09:00 Dominic Jones wrote: Also an plain array is a good stack. :) >>> >>> I'd rather not use a plain array because (I assume) that when I p