From: ahoward Date: 2003-01-31T03:22:58+09:00 Subject: Re: Newbie question On Fri, 31 Jan 2003, Mike Campbell wrote: > Out of curiosity, how so? Some of ruby's goodness is so much more useful > that C++'s, but I don't find a lot of it to be OOP related; iterators, > typeless variables, closures, and the like. The "OOPness" of ruby and C++ I > find relatively equivalent. try implementing these two ruby : class Table < Array ... end c--: class Table : public std::vector > > { } in general, just _try_ extending (extensibility being major measure of OOness IMHO) the stl. try implementing the state pattern in c-- try implementing the observer pattern in c-- try implementing th visitor pattern in c-- these are some things which should be readily implementable in any OO language, if you are a GoF fan. 'readily' takes on an entirely geological meaning if you are referring to c-- -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================