[Seaside] Re: Help with converting Gardner
Yanni Chiu
yanni at rogers.com
Sat Dec 18 04:00:44 CET 2004
Avi Bryant wrote:
>
> ... One suggestion that's been made is to simply
> have a properties dictionary on the base Session class so that rather
> than needing a subclass with ivars, you just use "self session
> propertyAt: #wiki" or some such. Thoughts on this?
How about just a single ivar (called data, properties, ...whatever).
The usage would then be:
self session data ivar1
self session data ivar1: value
which, IMHO, is preferable to:
self session propertyAt: #ivar1
self session propertyAt: #ivar1 put: value
Of course, you could still subclass, if you wanted:
self session ivar1
self session ivar1: value
More information about the Seaside
mailing list