Re: A question about certain language features

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

Classes!

include circle.e as circle

circle circle1
circle cirlce2

cirlce1.radius = 5
circle1. x = 0
circle1.y = 0

cirlce2.radius = 10
circle2. x = 5
circle2.y = 5

circle1.draw ()
circle2.draw ()

code above would draw two differecnt circles.
All global variables and routines in include file would be public members,
those not global private.

And I see no reason why such file could't also be used in old way:

circle:x = 20
circle:y = 20
circle:radius = 100
circle:draw ()

----- Original Message -----
From: <kbochert at ix.netcom.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, February 12, 2002 1:07 AM
Subject: Re: A question about certain language features



You wrote on 2/11/02 1:40:26 PM:

>
>It only needs a simple OOP addition.
>

What would that be?

Karl B

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

Search



Quick Links

User menu

Not signed in.

Misc Menu