Re: How I can determine this is class or struct at compile time?

2008-12-27 Thread Bill Baxter
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

Re: How I can determine this is class or struct at compile time?

2008-12-27 Thread BCS
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:

How I can determine this is class or struct at compile time?

2008-12-26 Thread Weed
subj

Re: How I can determine this is class or struct at compile time?

2008-12-26 Thread BCS
Reply to Weed, subj is(typeof(*this))?struct:class; // untested