Re: Call for Opinions
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> May 22, 2005
- 560 views
On Sat, 21 May 2005 13:48:28 -0700, Matt Lewis <guest at RapidEuphoria.com> wrote: >In the future, I'm planning on adding a more elegant solution, so that: >}}} <eucode> >struct@New( 0, "Hello World" ) >-- is equivalent to: >struct = MyStruct.New( 0, 0, "Hello World" ) > >-- and this: >struct~SomeMethod() >-- is equivalent to: >struct = struct.SomeMethod() ></eucode> {{{ Not to put too fine a point on it, I consider that horrid !! Presumably, struct must be of type MyStruct anyway for the above to work? So, please, what is wrong with: struct = New(0, "Hello World" ) struct = SomeMethod() Obviously, if struct is not of type MyStruct, then you need the "MyStruct." qualifier to identify the class, but given that it is, you can leave it (and that "this" thing) out? Regards, Pete