you see you find a use of Set :) Stef
On Nov 1, 2009, at 6:17 PM, Lukas Renggli wrote: >> Oh, wait.. you mean that if i want, say 35 out of 50 announcement >> kinds to be logged, then >> i need to do something like: >> >> logblock := [:announcement | ... ]. >> announcer on: AnnouncementKind1 do: logblock. >> announcer on: AnnouncementKind2 do: logblock. >> .... >> announcer on: AnnouncementKind35 do: logblock. >> >> ? >> Do you agree that this is far from being short and elegant? Moreover >> it imposes dependency from various kinds of events, instead of just >> one (LoggedAnnouncement), >> and, if i going to change them somehow, i would need to revisit this >> code again.. and again. > > announcer > on: AnnouncementKind1 , AnnouncementKind2 , ... > AnnouncementKind35 > do: logblock > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
