Roles! This has brought some memories. Back in 1998 I did (my MSc thesis) a compiler for an extension of Java that had first-class roles. The objective was to model context-dependent dynamic behavioural evolution. I even had some basic algebra that described things...
This stuff are always at the back of my head. Context-dependent behaviour will raise sometime to a discipline. At least it has great potential.
BR
Christos
On Jun 18, 2009, at 10:46 AM, Adriaan Moors wrote:
I quite like dynamic object composition. Michael Pradel did his master's thesis on something closely related: his talk. There's also a paper.
cheers,
adriaan
On Thu, Jun 18, 2009 at 2:18 AM, Jorge Ortiz
<jorge.ortiz@...> wrote:
A similar effect can be achieved with the Pimp My Library pattern.
--j
As a possible new language feature, How plausible would it be to extend a live instantiated object with a trait, by reusing the "with" keyword that already exists for mixins / static object composition? This would help greatly in implementing decorators and the DCI pattern