Artifact Content
Not logged in

Artifact 7c435a81bebd30e554f0cda5845aa37d5dff6dfa


tricks.tricks

tricks.tricks

Authors:
k.inaba

License:
NYSL 0.9982 http://www.kmonos.net/nysl/

Common tricks and utilities for programming in D.

string sprintf (string fmt, T...)(T params);
Simple Wrapper for std.format.doFormat

ExceptionType genex (ExceptionType, string fn = __FILE__, int ln = __LINE__, T...)(T params);
Create an exception with automatically completed filename and lineno information

template SimpleConstructor ()
Mixing-in the bean constructor for a class

this(typeof(this.tupleof) params);
member-by-member constructor

template SimpleToHash ()
Mixing-in the MOST-DERIVED-member-wise comparator for a class

const hash_t toHash ();
member-by-member hash

template SimpleCompare ()
Mixing-in the MOST-DERIVED-member-wise comparator for a class

const bool opEquals (Object rhs_);
member-by-member equality

const int opCmp (Object rhs_);
member-by-member compare

template SimpleToString ()
Mixing-in a simple toString method

string toString ();
member-by-member toString

template SimpleClass ()
Everything is in

template firstParam (T)
Will be used for dynamic overload resolution pattern

Page was generated with on Wed Nov 24 21:12:49 2010