Function literals and lambda functions
spir
denis.spir at gmail.com
Sun Mar 6 07:30:43 PST 2011
On 03/06/2011 03:03 PM, Russel Winder wrote:
> PS If you ask why not:
>
> reduce ! ( "a+b" ) ( 0.0 , outputData )
>
> I find this somehow unacceptable. It's the string, its not a function.
> Fine, my problem, but that still leaves the above.
You are not the only one ;-). The ugliest trick I have ever seen in a language.
Even worse than BASIC's 'eval'. But we're far from having AST methods in D, I
guess.
Denis
--
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d
mailing list