www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OT: Closures For Java

reply Knud Soerensen <4tuu4k002 sneakemail.com> writes:
Google TechTalk about closures For java.

http://video.google.com/videoplay?docid=4051253555018153503
Mar 22 2007
parent Bradley Smith <digitalmars-com baysmith.com> writes:
Knud Soerensen wrote:
 Google TechTalk about closures For java.
 
 http://video.google.com/videoplay?docid=4051253555018153503

Interesting talk. When watching the examples regarding the deficiencies with anonymous instances, I asked myself the question "How would I write similar examples in D, and would they have some of the same deficiencies?" I think, for the most part, D avoids many of the problems with its more advance language constructs (delegates, scope, with, etc). With the mixin statements, it is possible to write closures, but required use of strings makes it non-ideal.
Mar 22 2007