From: Tony Arcieri Date: 2012-08-16T09:01:08+09:00 Subject: Re: Print method --f46d043bdf5e78deb604c756bdc0 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 15, 2012 at 4:48 PM, Henry Maddocks wrote: > I know it's a common example in OOD text books, that an object has a print > method (or draw or display), but that design is wrong. [...] Ruby has done > the correct thing. > Oh has it now? 1.8.7 :001 > "Hello world!".display Hello world! => nil -- Tony Arcieri --f46d043bdf5e78deb604c756bdc0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Aug 15, 2012 at 4:48 PM, Henry Maddocks = <hmaddocks@me.com> wrote:
I know it's a common example in OOD text books, that = an object has a print method (or draw or display), but that design is wrong= . [...]=A0Ruby has done the correct thing.

Oh has it now?=A0

1.8.7 :001 &g= t; "Hello world!".display
Hello world!
=3D>= ; nil=A0

--
Tony Arcieri

--f46d043bdf5e78deb604c756bdc0--