Re: Call for Opinions

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu