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

[REBOL] Re: Private/Public attributes

From: greggirwin:mindspring at: 15-Nov-2002 10:26

Hi Miguel, ML> I want to know if the concepts of private and public are implemented in ML> Rebol? Not really; at least not in a way you might expect. As with most things in REBOL, you can find a way though. :) You can define a USE block in an object to create a private area of sorts. 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] ] ] -- Gregg