DGui
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Apr 3 22:26:10 PDT 2011
P.S. in case it wasn't obvious, addItem adds a newly constructed Menu
object to a MenuBar, and this function returns the instance of the
Menu for chaining. Thanks to `with` I can play with the newly
constructed object without referring explicitly to its name.
On 4/4/11, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> I'm taking `with` to the extreme!
>
> http://codepad.org/dS97SDFS
>
> Using a foreach loop to construct anonymous objects, and using an
> index to label them in their constructor. I also hook them up to the
> dispatch function. Just how cool is that?
>
More information about the Digitalmars-d
mailing list