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

[REBOL] Re: Private words in objects?

From: cyphre:seznam:cz at: 5-Jul-2006 19:56

Hi Alberto, As Gregg said Rebol was designed for smaller projects so there is not much needs for full featured OOP. But I think such 'protected' feature can be easily replaced by simple rule (which can be applied even inside a group of developers which are working on the same project): -Use specific names for private members. For example: my-obj: context [ p_a: 10 p_b: 20 c: 30 d: 40 .... etc. ] so this way programmer knows what member of object is allowed to change. It all depends on the team/author discipline ;) From my exeprience I've never had problems with errors of this kind in Rebol projects (even though I worked also in strict OOP language based projects) but this is just my 2cents. Maybe there is lot of people who rely on this kind of 'error checking'. regards, Cyphre