[REBOL] [REBOL] [REBOL] Redefining functions with objects Re:(4)

2000-04-12 Thread tjohnson
Hi Ingo: In reply to your statement: >When your 'op was named 'open, did you change the line >fp: open/new/write %objone.txt >to >fp: system/words/open/new/write %objone.txt >- >?? > >otherwise it has called itself, again and again ... I didn't - and that's why I got a

[REBOL] [REBOL] [REBOL] Redefining functions with objects Re:(3)

2000-04-12 Thread ingo
Hi Tim, I haven't closely looked at your code, but a short notice on ... Those were the words of [EMAIL PROTECTED]: > I have probably answered my own question: > I'm still a newbie, but am pleased to return > results -> > ; == consider the following code: the two objects work > ; independently.

[REBOL] [REBOL] [REBOL] Redefining functions with objects Re:(2)

2000-04-11 Thread tjohnson
I have probably answered my own question: I'm still a newbie, but am pleased to return results -> ; == consider the following code: the two objects work ; independently. They use the same named methods ; op, prn, and close ; When I named those methods open, print,and close, ; I got stack overflo

[REBOL] [REBOL] Redefining functions with objects Re:(2)

2000-04-11 Thread tjohnson
Hi Michael - At 12:42 PM 4/11/00 -0700, you wrote: >I'm currently defining a 'print element of an object as a function. I'm >assuming that the REBOL definition of 'print will be hidden in the >definition of this object (and definitions of functions local to the >object) Actually . print would

[REBOL] [REBOL] Redefining functions with objects Re:

2000-04-11 Thread mjelinek
I'm currently defining a 'print element of an object as a function. I'm assuming that the REBOL definition of 'print will be hidden in the definition of this object (and definitions of functions local to the object) - which is ok. Outside of the element 'print, the REBOL definition works just fine

[REBOL] [REBOL] Redefining functions with objects Re:

2000-04-11 Thread icimjs
Hi Tim, >Will >tims-object/print >redefine rebol's own print? > Within tims-object print replaces the global print, which you can continue to access using system/words/print >> tims-object: make object! [ print: func [][ system/words/print "this is the global print." ] ] >> tims-