Re:Scala: The Static Language that Feels Dynamic (Bruce Eckel)
by contextfree on Sunday June 12, 2011 @08:47PM
(#2647765)
I'm not familiar with the DCE VM, but DLR is a library on top of the CLR, not a different version of the CLR.
[ Parent
| on HN ]
Re:Scala: The Static Language that Feels Dynamic (Bruce Eckel)
by bad_user on Monday June 13, 2011 @02:19AM
(#2648300)
It is a library on top of the CLR, but it cannot function without CLR-specific capabilities.
For example DynamicMethod, which represents a method reference that can be created at runtime and garbage-collected when no longer in use; similar to the lightweight method handlers in JSR 292.
That said, modifying existing classes on top of the CLR is not possible, unless it inherits from something like ExpandoObject, but you can pull the same trick in Java (though not as easily until JSR 292 comes out).