[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] iliad and blocks
From: |
Nicolas Petton |
Subject: |
Re: [Help-smalltalk] iliad and blocks |
Date: |
Mon, 22 Jun 2009 15:13:04 +0200 |
Le lundi 22 juin 2009 à 15:05 +0200, Paolo Bonzini a écrit :
> Off list Nicolas suggested using #build: which is just a wrapper method
> calling #value:.
Sorry, I didn't mean to answer off list. I forwarded the email.
You're proposal is just great!
Thanks, I'm committing it right now :)
Cheers!
Nico
> With it, Joachim's #contents message would look like
>
> > contents [
> > ^[ :e |
> > e
> > build: self headerContent;
> > add: menu build;
> > break;
> > build: self mainContent;
> > build: self footerContents.
> > ]
> > ]
> >
>
> My reply is...
>
> Even better for me would be:
>
> Element >> build: aBuildable
> <category: 'building'>
> aBuildable buildOn: self
>
> BlockClosure >> buildOn: anElement
> <category: 'building (Iliad)'>
> self value: anElement
>
> Widget >> buildOn: anElement
> <category: 'building'>
> e add: self build
>
> and then keeping the block structure for #contents, like
>
> contents [
> ^[ :e |
> e
> build: self headerContent;
> build: menu;
> break;
> build: self mainContent;
> build: self footerContents.
> ]
> ]
>
> Paolo
signature.asc
Description: Ceci est une partie de message numériquement signée
- [Help-smalltalk] iliad and blocks, Paolo Bonzini, 2009/06/22
- Re: [Help-smalltalk] iliad and blocks, Joachim Jaeckel, 2009/06/22
- Message not available
- Re: [Help-smalltalk] iliad and blocks, Paolo Bonzini, 2009/06/22
- Message not available
- Re: [Help-smalltalk] iliad and blocks, Paolo Bonzini, 2009/06/22
- Re: [Help-smalltalk] iliad and blocks,
Nicolas Petton <=
- Re: [Help-smalltalk] iliad and blocks, Paolo Bonzini, 2009/06/22
- Re: [Help-smalltalk] iliad and blocks, Nicolas Petton, 2009/06/22
- Re: [Help-smalltalk] iliad and blocks, Janko Mivšek, 2009/06/22
- Re: [Help-smalltalk] iliad and blocks, Lukas Renggli, 2009/06/22
- [Help-smalltalk] Re: iliad and blocks, Paolo Bonzini, 2009/06/22