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: compile time method check

2008-12-27 Thread Weed
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 (

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:

DDL problem

2008-12-27 Thread Tim M
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.

Re: DDL problem

2008-12-27 Thread Jarrett Billingsley
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?

Re: DDL problem

2008-12-27 Thread Tim M
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