getting at it
[1/4] from: hallvard:ystad:helpinhand at: 6-Feb-2002 14:51
Hello everyone
I have the word 'to-display that I perform some checks on. In the example below, 'to-display,
as you can see, refers to the prin function. How can I make rebol tell me what type?
'to-display's reference is?
>> type? :to-display
== path!
>> mold :to-display
== "system/words/prin"
>> type? get :to-display
** Script Error: get expected word argument of type: any-word
** Near: type? get :to-display
>>
I get nowhere with 'get. I believe this has got to do with the function being refered
to _within_ system/words, because it seems to work otherwise:
>> type? :prin
== native!
>> type? :system/words/prin
** Script Error: prin is missing its value argument
** Near: type? system/words/prin
>>
Is there a way to 'get at system/words/prin (or other functions within paths), so that
I may look at the source or lookup its type?
~H
[2/4] from: rotenca:telvia:it at: 6-Feb-2002 15:10
Hi,
> Is there a way to 'get at system/words/prin (or other functions within
paths), so that I may look at the source or lookup its type?
type? get-path :to-display
== native!
But get-path is not a system function. You can find my implementation in my
reb site:
http://web.tiscali.it/anarkick/getpath.r
---
Ciao
Romano
[3/4] from: lmecir::mbox::vol::cz at: 6-Feb-2002 17:14
Hi Hallvard,
<<Hallvard>>
...
Is there a way to 'get at system/words/prin (or other functions within
paths), so that I may look at the source or lookup its type?
~H
...
<</Hallvard>>
The simplest way is to write:
type? get in system/words 'prin
Cheers
Ladislav
[4/4] from: hallvard:ystad:helpinhand at: 7-Feb-2002 15:20
Of course! thanks.
~H
Dixit Ladislav Mecir (17.14 06.02.2002):