Re: Tempated class instantiation

2009-12-16 Thread grauzone
Mike L. wrote: I'm making a class template that only works with strings, so I thought it'd be good to instantiate each template with char, wchar, and dchar right in the template's module so that when it's compiled it'll be part of the .obj file and won't have to compile it for every other

Re: Tempated class instantiation

2009-12-16 Thread Mike L.
Simen kjaeraas Wrote: On Wed, 16 Dec 2009 07:25:39 +0100, Mike L. sgtmuff...@myrealbox.com wrote: I'm making a class template that only works with strings, so I thought it'd be good to instantiate each template with char, wchar, and dchar right in the template's module so that

Immutable circular imports

2009-12-16 Thread Tomek Sowiński
Amusing things happen when immutable arguments and circular imports are put together: -- module hello; import test; struct Strukt { Staly* s; } -- module test; import hello; immutable struct Staly {

Re: Immutable circular imports

2009-12-16 Thread grauzone
Tomek Sowiński wrote: Amusing things happen when immutable arguments and circular imports are put together: -- module hello; import test; struct Strukt { Staly* s; } -- module test; import hello;

Programming test - using strings

2009-12-16 Thread Joel Christensen
Any one interested in doing D versions of this program? http://www.rubyquiz.com/quiz14.html

Re: Programming test - using strings

2009-12-16 Thread Simen kjaeraas
On Thu, 17 Dec 2009 03:46:52 +0100, Joel Christensen joel...@gmail.com wrote: Any one interested in doing D versions of this program? http://www.rubyquiz.com/quiz14.html There're plenty of opportunities for making this smaller, but at 4:53 in the morning, I'm not optimizing much. :p

Re: Tempated class instantiation

2009-12-16 Thread Rory McGuire
Mike L. sgtmuff...@myrealbox.com wrote: Simen kjaeraas Wrote: On Wed, 16 Dec 2009 07:25:39 +0100, Mike L. sgtmuff...@myrealbox.com wrote: I'm making a class template that only works with strings, so I thought it'd be good to instantiate each template with char, wchar, and dchar