The first requires actually compiler support for the syntax, but the second is possible in Delphi 7 by using interfaces. Of course it is cumbersome, but not impossible.
There's a LOT of things that one gets a sinking, disappointing feeling about when stepping back to Delphi 7. Anonymous Methods, Generics, all the little and useful and wonderful RTL changes in the meantime, the eleventy hojillion IDE enhancements...
Teh horror! I'm properly addicted to them.
ReplyDeleteImagine getting accustomed to lambdas and type inference...
ReplyDeleteI still haven't seen a lambda syntax for Pascal that I think looks clean and easily understandable.
ReplyDeleteLars Fosdal I still haven't seen a lambda syntax [snip] that I think looks clean and easily understandable.
ReplyDeleteWhy do you use anon methods?
ReplyDeleteInline event handler definition
or
Variable capturing
The first requires actually compiler support for the syntax, but the second is possible in Delphi 7 by using interfaces. Of course it is cumbersome, but not impossible.
I couldn't live without anonymous methods...
ReplyDeleteThere's a LOT of things that one gets a sinking, disappointing feeling about when stepping back to Delphi 7. Anonymous Methods, Generics, all the little and useful and wonderful RTL changes in the meantime, the eleventy hojillion IDE enhancements...
ReplyDeleteOne thing I wouldn't miss are the added 3rd party plugins
ReplyDeleteJust imagine what it's like going back to Delphi 1! Thankfully that code will be retired this year.
ReplyDelete