Summary
I was working on specifying separate mixin and interface types, when I remembered Scala Traits / Ruby Modules.

Advertisement

It just dawned on me as I was working on a mixin specification, that the Ruby and Scala solutions are far more elegant than what I was moving towards. Thanks to Keith Gaughan for jogging my memory on this point.

However, with one small change to the language specification: _before and _after member macros (incidentally something similar existed in the original cfront tool by Stroustrup), you can implement an AOP style advice class.

RSS Feed

About the Blogger

Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( www.heron-language.com ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at www.cdiggins.com.