Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: private methods ? override ?

From: gregg:pointillistic at: 6-Jun-2007 14:41

Hi Arnaud, AG> As you see I post many questions these days, I want to understand AG> what I can and cannot do with rebol ... That's great. Asking questions helps everybody. AG> 1/ In rebol you can make object, but as I read it is not possible to AG> create private function ? It can be done, but it's more work that REBOLers normally want to use. :-) o: make object! [ a: 0 b: 1 fn-1: fn-2: none use [c d] [ c: "xyz" fn-1: does [print c] fn-2: does [a: 2 d: 4] ] ] o: make object! [ get-a: set-a: get-b: set-b: none use [_a _b] [ _a: _b: none get-a: does [_a] set-a: func [value] [_a: value] get-b: does [_b] set-b: func [value] [_b: value] ] ] Marc Meurrens did some extra research in this area as well. I'm not sure if he's still on the ML, after all the changes it's gone through, but maybe he'll chime in. -- Gregg