Re: Code-File structure

2012-06-14 Thread Pragma Tix
Am 13.06.2012 03:56, schrieb Nathan M. Swan: You cannot put multiple modules in a file like C++ namespaces. A nice trick in D for creating local namespaces that combine items from several modules under one name is to use a mixin template. module app; mixin template StdLib() { import std.

Re: Code-File structure

2012-06-14 Thread Pragma Tix
Am 14.06.2012 20:01, schrieb Artur Skawina: On 06/14/12 19:26, Pragma Tix wrote: Am 13.06.2012 03:56, schrieb Nathan M. Swan: You cannot put multiple modules in a file like C++ namespaces. A nice trick in D for creating local namespaces that combine items from several modules under one name

Waiting for Godot

2012-06-28 Thread Pragma Tix
Am 27.06.2012 14:25, schrieb Steven Schveighoffer: On Wed, 27 Jun 2012 05:37:00 -0400, Minas Mina wrote: How can I do that? Why not list.remove(x); like in STL? SList is quite unusable. If you are looking for STL-like containers, there is dcollections which has a doubly-linked list, and su