Overloading rebol words
[1/3] from: tim:johnsons-web at: 14-Sep-2000 21:28
Hello: I'm full of questions tonight. Been away
from rebol too long, I guess.
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 :)
Thanks to All!
-Tim
[2/3] 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,
<<quoted lines omitted: 5>>
> 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/
[3/3] from: tim::johnsons-web::com at: 14-Sep-2000 22:19
Thanks again Al:
system/words/.... is what I was looking
for. I have browse-system.r here, but
does not give access to system/words/
of course.
Cheers
-Tim
[Al--Bri--xtra--co--nz] wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted