On Monday, 5 August 2013 at 13:01:19 UTC, bearophile wrote:
Some small style rules for D user code:
1) All variables and functions arguments should be
immutable/const (or enum), unless they have to mutate (or there
is some other problem in Phobos, in the D type system, or in
your other
I made a markdown gist for the above module import tips:
https://gist.github.com/nikibobi/6156492
On Saturday, 3 August 2013 at 09:02:32 UTC, Andre Artus wrote:
On Saturday, 3 August 2013 at 06:51:40 UTC, evilrat wrote:
On Saturday, 3 August 2013 at 05:24:11 UTC, Andre Artus wrote:
On Saturday, 3 August 2013 at 04:38:13 UTC, Andre Artus wrote:
Hello D-world!
My name is Andre Artus, and
The D Programming Language is kind of old and out of date for
the current version of D. There aren't many books for D so you
have not much choice.
Attributes can be declared with 3 different syntaxes. For
example one could write:
//--1--
/*Explicitly state attribute before every declaration*/
On Saturday, 3 August 2013 at 14:35:52 UTC, JS wrote:
On Saturday, 3 August 2013 at 14:04:10 UTC, JS wrote:
There has to be a better way?!?!?!?!
Of course, I mean string mixin's using template.. and the
statement was to ask people how they went about it...
I usually write unittests that
I want to create a mixin template such that:
mixin template ArgNull(alias arg, string name)
{
if(arg is null)
throw new Exception(name~ cannot be null.);
}
But is there a way to do that with only one template argument.
And then use it like:
string text = null;
mixin
On Friday, 2 August 2013 at 11:37:27 UTC, Bosak wrote:
I want to create a mixin template such that:
mixin template ArgNull(alias arg, string name)
{
if(arg is null)
throw new Exception(name~ cannot be null.);
}
But is there a way to do that with only one template argument
On Friday, 2 August 2013 at 11:48:32 UTC, Andrej Mitrovic wrote:
On Friday, 2 August 2013 at 11:37:27 UTC, Bosak wrote:
I want to create a mixin template such that:
mixin template ArgNull(alias arg, string name)
{
if(arg is null)
throw new Exception(name~ cannot be null
On Friday, 2 August 2013 at 12:10:00 UTC, Bosak wrote:
On Friday, 2 August 2013 at 11:52:32 UTC, monarch_dodra wrote:
On Friday, 2 August 2013 at 11:37:27 UTC, Bosak wrote:
I want to create a mixin template such that:
mixin template ArgNull(alias arg, string name)
{
if(arg is null
On Friday, 2 August 2013 at 12:47:51 UTC, monarch_dodra wrote:
On Friday, 2 August 2013 at 12:17:12 UTC, Bosak wrote:
On Friday, 2 August 2013 at 12:10:00 UTC, Bosak wrote:
On Friday, 2 August 2013 at 11:52:32 UTC, monarch_dodra wrote:
On Friday, 2 August 2013 at 11:37:27 UTC, Bosak wrote:
I
10 matches
Mail list logo