Re: UDA failling to build when using delegate

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 5 November 2014 at 21:57:42 UTC, bioinfornatics wrote: On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote: On 11/04/2014 01:58 PM, bioinfornatics wrote: >> test.d(40): Error: type Section!((letter) => letter == '>', >> (letter) => letter == '\x0a') has no value You ha

Re: UDA failling to build when using delegate

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote: 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,

Re: UDA failling to build when using delegate

2014-11-04 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: UDA failling to build when using delegate

2014-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 4 November 2014 at 00:32:52 UTC, bioinfornatics wrote: On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics wrote: Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use UDA

Re: UDA failling to build when using delegate

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics wrote: Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use UDA to tell : to get this field you need to read from x to y using a dele

UDA failling to build when using delegate

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use UDA to tell : to get this field you need to read from x to y using a delegate. thanks for your advise