Gene LeFave wrote:
>
> Charles,
>
> I used defer: simply because I thought that was the preferred way to
> handle a forward reference. It seemed to me that that would also
> document that the subclasses of animal were supposed to provide their
> own version.
>
> Rick, which is preferred? or is this a distinction without a
> difference?
>
> CLASS foo
> DEFER: .bar ." not defined" ;
> : what .bar ;
> END-CLASS
>
> foo SUBCLASS fee
> DEFER: .bar ." defined" ;
> END-CLASS
>
> --- or ------
>
> CLASS foo
> : .bar ." not defined" ;
> : what ADDR -> .bar ;
> END-CLASS
>
> foo SUBCLASS fee
> : .bar ." defined" ;
> END-CLASS
>
> ----------------------
>
> _______________________________________________
> Sftalk mailing list Sftalk_at_forth.com
> Visit Sftalk on the web at http://www.forthinc.com/mailman/listinfo/sftalk
Received on Sun Jun 11 2000 - 06:05:28 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.