From: Seebs Date: 2009-11-18T05:10:20+09:00 Subject: Re: Newbie question: Defining a numeric type On 2009-11-17, Aldric Giacomoni wrote: > Why not take a step back and have "stat" be a hash of all the stats? Interesting. > @stat = { :strength => { :base_value => 15, :mods => { :race => 2 }, >:current_value => 17 } > This way you "need" Alucard.stat[:strength].current_value, but you can > fix that with custom methods / method_missing to become > Alucard.strength. Hmm. I sorta like that. > I'm sort of showing up after the war, here, but I really fail to > understand WHAT we're arguing about if not a design decision. I'd say "discussing". It's not "arguing" until people start accusing each other of being Fortran programmers. -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!