On Sat, Dec 27, 2008 at 4:14 PM, BCS a...@pathlink.com wrote:
Reply to Weed,
subj
is(typeof(*this))?struct:class; // untested
if (is(typeof(this) == class)) {
// is class
} else {
//not
}
This page is your friend:
http://www.digitalmars.com/d/1.0/expression.html#IsExpression
Bill Baxter пишет:
2008/12/27 Weed resume...@mail.ru:
Simen Kjaeraas пишет:
On Fri, 26 Dec 2008 20:15:30 +0100, Weed resume...@mail.ru wrote:
Can I at compile time check whether there is a facility method
(toString(), for example)?
Today I wrote:
static if (
Reply to Bill,
On Sat, Dec 27, 2008 at 4:14 PM, BCS a...@pathlink.com wrote:
Reply to Weed,
subj
is(typeof(*this))?struct:class; // untested
if (is(typeof(this) == class)) {
// is class
} else {
//not
}
This page is your friend:
Hi I would like to use DDL but I couldn't get the latest svn/trunk and
quick example to work with latest dmd. I think the syntax of templates has
changed since it was last tested.
On Sat, Dec 27, 2008 at 10:43 PM, Tim M a...@b.com wrote:
Hi I would like to use DDL but I couldn't get the latest svn/trunk and quick
example to work with latest dmd. I think the syntax of templates has changed
since it was last tested.
D1 or D2?
Sorry I should have made myself more clear. Latest d1 (1.038). If you get
ddl from trunk and try to build quick example there will be an error about
tango.io.FileConduit; so I changed that to tango.io.device.FileConduit;
and it then complains about ddl\ExpContainer.d(51): Error: argument