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
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:
subj
Reply to Weed,
subj
is(typeof(*this))?struct:class; // untested