Hi Martin,

constructors are easily done. 

>> a: [
[        print "hey, I'm new here ..."
[        b: 3
[    ]
>> b: make object! a
hey, I'm new here ...
>>

I have no idea on destructors, though ...


regards,

Ingo


Those were the words of [EMAIL PROTECTED]:
> Since I've programmed sometime i C++ with classes (almost like objects in REBOL), 
>I've missed some features in the objects in REBOL.
> 
> What about constructors (a member function that is executed at object creation) and 
>destructors (a member function that is executed at object deletion)?
> 
> 1. Will it be added to REBOL?
> 
> 2. How can it be made with current implementation of REBOL?
> 
> Yours faithfully
> ---
> Martin Ancher Holm
> Work <[EMAIL PROTECTED]>, Home <[EMAIL PROTECTED]>
> <http://wwww.dk>,    Cell <[EMAIL PROTECTED]>
> 
> 

--  _     .                                _
ingo@)|_ /|  _| _  <We ARE all ONE   www._|_o _   _ ._ _  
www./_|_) |o(_|(/_  We ARE all FREE> ingo@| |(_|o(_)| (_| 
http://www.2b1.de/Rebol/                     ._|      ._|

Reply via email to