Re: object idea

From: Charles Esson <charlese_at_cvs.com.au>
Date: Fri, 23 Apr 1999 04:36:47 +1000

SF Talk wrote:

> Date: Thu, 22 Apr 1999 13:53:21 +6
> From: "Gene LeFave" <gene_at_tekdata.com>
> Subject: object idea
>
> I was tinkering with my oof last night and have a couple of ideas I'd
> like to share.
>
> Would it make since to have an object instance just be a pointer to
> the actual object, which is not actually created until it is needed.

When you create an object you give it initialization values. Where would
the initialization values come from.

>
> This JAVA like approach would allow static and dyanamic objects to be
> treated essentially the same. The variables could also be linked
> together allowing a prune funtion to delete them.
>
> Secondly, I was trying to think up a syntax that allows more then one
> method to be compiled for the same object. Something like:

Why would you want to add methods through an object, methods are a class
thing?

>
> myObj << Get 1+ Put >>
> Get and Put are methods for myObj.
> Where << puts the class into the context and allows normal compiling
> to continue, then >> restores it. I'm
> not real happy with using << and >> though, any suggestions?
>
> Gene
>

.
Received on Fri Apr 23 1999 - 04:36:47 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 07-Feb-2012. Archive updated nightly.