Handbook
Glossary
where ( defspec -- loc )
Factor handbook
»
The implementation
»
Definitions
»
Definition protocol
Next:
set-where ( loc defspec -- )
Vocabulary
definitions
Inputs
defspec
a definition specifier
Outputs
loc
a
{ path line# }
pair
Word description
Outputs the location of a definition. If the location is not known, will output
f
.
Definition
IN:
definitions
GENERIC:
where
( defspec -- loc )
Methods
USING:
accessors
definitions
delegate.private
;
M:
consultation
where
loc>>
;
USING:
accessors
definitions
help.topics
;
M:
link
where
name>>
lookup-article
loc>>
;
USING:
definitions
kernel
multi-methods
sequences
;
M:
method-spec
where
dup
unclip
method
or?
[
first
]
unless
where
;
USING:
assocs
classes.mixin
classes.mixin.private
definitions
words
;
M:
mixin-instance
where
>mixin-instance<
"instances"
word-prop
at
;
USING:
definitions
kernel
;
M:
object
where
drop
f
;
USING:
accessors
arrays
definitions
io.pathnames
;
M:
pathname
where
string>>
1
2array
;
USING:
accessors
definitions
help.tips
;
M:
tip
where
loc>>
;
USING:
definitions
typed
words
;
M:
typed-gensym
where
parent-word
where
;
USING:
arrays
definitions
kernel
vocabs
vocabs.loader
;
M:
vocab-spec
where
vocab-source-path
dup
[
1
2array
]
when
;
USING:
accessors
definitions
help.topics
words
;
M:
word-link
where
name>>
"help-loc"
word-prop
;
USING:
definitions
words
;
M:
word
where
"loc"
word-prop
;