[REBOL] Overloading rebol words Re:
From: al:bri:xtra at: 15-Sep-2000 17:47
Tim asked:
> If I were to "overload" a rebol word in an object:
> example: print,
> then to prevent stack overflow,
> if I would to use print within that object, I
> would have to give the full "path" to the
> system native value of print.
> Questions:
> 1)How do I get that full path and where is the documentation on that.
> 2)Please, if anyone thinks that this is a bad idea, let me know before I
go and hurt myself :)
>> o: make object! [
[ print: does [
[ system/words/print "123"
[ ]
[ ]
>> o/print
123
>> print 1 + 3
4
Andrew Martin
Look, ma! I'm not hurt!
ICQ: 26227169
http://members.ncbi.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/