[futurebasic] Re: Fear and Loathing Guide

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Mark Lincoln <mlincoln@...>
Date: Sat, 06 Dec 1997 18:52:18 -0500
Rick Brown wrote:

> > BEGIN CLASS "cObject",""
> >    DIM something
> > END CLASS
> >
> > PROPERTY something = something
> >
> > METHOD Draw
> > END METHOD
> >
> > BEGIN CLASS "cWindow","cObject"
> >    DIM anotherThing
> > END CLASS
> >
> > PROPERTY anotherThing = anotherThing
> >
> > etc...
> 
> That is good to know, but now we're back to the counter-intuitive
> syntax.  That is, methods are a part of the class described _above_
> them, even though they appear _after_ the END CLASS statement.  This
> means we'll just have to remember that END CLASS doesn't really _mean_
> END CLASS.
> 
> - Rick

It seems to me that in most cases the syntax, even though somewhat
counter-intuitive, is not a problem in that in most cases only one class
is defined per file.  If you put multiple classes into one file, then
yes, there is a bit of a problem; then again, after a while we'll
probably automatically look for the methods under the classes.  I will,
if I ever get to the point where I understand this class/method/property
thing...   :-)

Mark L