Hi Helmut,
[...]
> I want to get a "fire" -event if an attribute, such as 'balance, is
> changed. So I can test of a valid data-type or to test wether the new value
> is in a valid range.
Define a 'set-balance (or 'let-balance) function in the account context, where
you can put all your proce
Helmut, thank you for the additional clarification. First, let me caution
that I am still a novice with REBOL. I am certain that there are others on
this list that could answer your question with more authority than myself.
However, since no one has yet addressed your second question in the orig
my next question is, how can I define private attributes in an object?
(like in Java)
-helmut
-Ursprüngliche Nachricht-
Von: GS Jones <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Montag, 29. Januar 2001 21:39
Betreff: [REBOL] Re: object/property1: &q
Hi Helmut,
Elan seems to have answered your first question that pertains to protecting
attributes in objects.
I am not sure that I fully understand what you are asking in your second
question:
...
> > 2) how can I get an event, when an object variable is changed?
...
Maybe an example will help.
Hi Helmut,
REBOL has a protect function that protects words from being reassigned.
The protect function does not work for words that are implemented in
objects. I have previously asked RT to add this functionality. As of the
latest experimental /Core release this feature has not been added.
Elan