Re: foreach/opApply is the visitor pattern

2009-01-31 Thread Lars Ivar Igesund
but I think this make for a nice, cool and easy way to describe > it. (Also I don't remember it being described that way) Indeed, I heard it called that a long time ago, and have explained it as such since then. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango

Re: Two Tango container package

2009-01-06 Thread Lars Ivar Igesund
module will act as ArrayBag? That particular container have been prioritized down since arrays in D are fairly nice to use in any case - so an implementation may have to rely on a contribution. or at least a wishlist ticket. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango &am

Re: Two Tango container package

2009-01-03 Thread Lars Ivar Igesund
> >> Thanks. > > Container is the newer one. Collection is not going to be removed so > suddenly (deprecated). See here > http://dsource.org/projects/tango/forums/topic/523 It (tango.util.collection) is deprecated yes, but will not stay for long. -- Lars Ivar Igesund b

Re: Running dmd with older glibc

2008-12-30 Thread Lars Ivar Igesund
> > I think DMD requires libc version 5, but don't quote me on that. I actually think it is a link error, in that too high a version of libc (compared to what is needed) is linked in. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango

Re: Comparable Type

2008-12-11 Thread Lars Ivar Igesund
not be sane. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango

Re: Cyclic Dependencies

2008-12-09 Thread Lars Ivar Igesund
7;s DMD's fault or > mine. It reports an Internal Error in e2ir.c at line 3904. (not being a > C++ guru, the line "assert(n2->Enumbytes);" doesn't mean much to me) > That was with DMD 1.037, Tango 0.997, and using dsss to build. Tango 0.99.7 doesn't support D

Re: Getting environment variables?

2008-11-23 Thread Lars Ivar Igesund
is to use SHGetSpecialFolderPathA. > > Something like this: > > char[MAX_PATH] buf; > SHGetSpecialFolderPathA(null, buf.ptr, CSIDL_PERSONAL, false); > char[] dir = toString(buf.ptr); > > or CSIDL_APPDATA, etc. In tango this is available in tango.sys.win32.SpecialPath -- Lars