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

Gareth Charnock gareth at oerc.ox.ac.uk
Tue Aug 3 07:31:26 PDT 2010


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-11d0-8529-00c04fd8d503") at compile time
>
> What's the problem and how to solve it?Thanks for your help in advance.
>
> Regards,
> Sam

I'm not to sure what uuid(string) does but check that:
1) It can be evaluated at compile time and
2) It returns a string.

Perhaps post the source of uuid (or at least the signature) so we can 
work out why it can't be evaluated at compile time?


More information about the Digitalmars-d-learn mailing list