Value...

From: Alberto Santini <albertosantini_at_tiscalinet.it>
Date: Fri, 18 Aug 2000 00:21:50 +0200

Hello.

Is it correct the message 'va1 isn't unique'
for the code:

\ ----------------------
class c1
private
   variable v
   0 value va1
   0 constant ca1
end-class

class c2
private
   variable v
   0 value va1
   0 constant ca1
end-class
\ ----------------------

I used the same VALUE in different classes and found
that (my) misunderstanding. I use the VALUE to store
the NEW result as

     CLASS1 NEW TO P_C1

P_C1 is a member of different classes with the same
function: to retain the pointer of the class.

May be the VALUE creates a name in the dictionary,
but I don't understand it. Why don't VARIABLE or
CONSTANT too?

Which is your approach when you have the same member
name (VALUES) in different classes?

Thanks in advance,
Received on Thu Aug 17 2000 - 23:43:39 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.