Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Steven Schveighoffer
On Wed, 04 Aug 2010 17:31:30 -0400, Philippe Sigaud wrote: On Wed, Aug 4, 2010 at 22:00, Steven Schveighoffer wrote: code i'm not sure what the is(char[1 + Range.empty])) Hm..., then shouldn't that be is(typeof(...))? But char[1 + ...] is already a type, no? I thought typeo

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Philippe Sigaud
On Wed, Aug 4, 2010 at 22:00, Steven Schveighoffer wrote: > code i'm not sure what the is(char[1 + Range.empty])) >>> >>> Hm..., then shouldn't that be is(typeof(...))? > > But char[1 + ...] is already a type, no? I thought typeof() was to extract type from an express

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Richard Webb
I don't have a minimal example, but i have found that the error only occurs with the most recent version of std.algorithm -> the current SVN version of phobos with the previous revision of algorithm compiles ok.

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Steven Schveighoffer
On Wed, 04 Aug 2010 14:52:14 -0400, Philippe Sigaud wrote: On Wed, Aug 4, 2010 at 14:48, Steven Schveighoffer wrote: On Wed, 04 Aug 2010 08:35:18 -0400, Richard Webb wrote: I haven't worked out whats causing the problem yet, though looking at the Phobos code i'm not sure w

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Philippe Sigaud
On Wed, Aug 4, 2010 at 14:48, Steven Schveighoffer wrote: > On Wed, 04 Aug 2010 08:35:18 -0400, Richard Webb > wrote: > > I haven't worked out whats causing the problem yet, though looking at > the Phobos > >> code i'm not sure what the >> >> is(char[1 + Range.empty])) >> > > Not sure

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Steven Schveighoffer
On Wed, 04 Aug 2010 08:35:18 -0400, Richard Webb wrote: Dwin uses Tango and so only works in D1 anyway, so i don't know if thats the problem (Juno uses string already, and i've used that ok in D1 and D2). All I'm saying is that is what the error message is saying "you're trying to mixin

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Richard Webb
Dwin uses Tango and so only works in D1 anyway, so i don't know if thats the problem (Juno uses string already, and i've used that ok in D1 and D2). I've managed to get Juno working with a recent D2 before, but with the latest SVN version i get: /// ph

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-04 Thread Steven Schveighoffer
On Tue, 03 Aug 2010 21:04:26 -0400, Sam Hu wrote: Richard Webb Wrote: The Juno library has a 'uuid' that works like that, and the posted example seems to build ok here using DMD 1.062. Theres also a Tango version of the same code in the dwin library, but i haven't tried that for ages. T

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Sam Hu
Richard Webb Wrote: > The Juno library has a 'uuid' that works like that, and the posted example > seems > to build ok here using DMD 1.062. > > Theres also a Tango version of the same code in the dwin library, but i > haven't > tried that for ages. Thank you both for the reply.Sorry for the la

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Richard Webb
The Juno library has a 'uuid' that works like that, and the posted example seems to build ok here using DMD 1.062. Theres also a Tango version of the same code in the dwin library, but i haven't tried that for ages.

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Gareth Charnock
On 03/08/10 15:19, Sam Hu wrote: Base on D1: interface IADsPropertyEntry : IDispatch { mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")); ... Error when compile: argument to mixin must be a string,not mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")) cannot evaluate uuid("05792c8e-941f

cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Sam Hu
Base on D1: interface IADsPropertyEntry : IDispatch { mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")); ... Error when compile: argument to mixin must be a string,not mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")) cannot evaluate uuid("05792c8e-941f-11d0-8529-00c04fd8d503")