UDA failling to build when using delegate

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 4 14:06:03 PST 2014


On 11/04/2014 01:58 PM, bioinfornatics wrote:

 >> test.d(40): Error: type Section!((letter) => letter == '>',
 >> (letter) => letter == '\x0a') has no value

You have this line:

     @Section!(/* ... */)

Although that is a type name, there is a bug somewhere and sometimes you 
have to use a 'value' as a UDA. (We talked about this recently but I 
don't remember the details.) So make it an object so that it is a 'value':

     @Section!(/* ... */)()

(You have another instance of that.)

You will have to deal with the next set of error messages now. :-/

Ali



More information about the Digitalmars-d-learn mailing list