From: Seebs Date: 2009-11-18T05:05:09+09:00 Subject: Re: Newbie question: Defining a numeric type On 2009-11-17, Brian Candler wrote: > This is true. So for symmetry, you could make str=(v) set the [current] > value in the Stat object, and str return the current value from the Stat > object. Anyway, it's just a thought. I've sort of waffled on that. I could certainly do something like: john.str (yields the fixnum) john.str= (sets things such that the fixnum acquires the new value) john.str_stat (yields the Stat) But so far I prefer just having Stat delegate stuff to its current value, because then I can always say "john.str", and it responds to every message the way I expect it to. -s -- Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!