Handbook
Glossary
expired? ( c-ptr -- ? )
Factor handbook
»
C library interface
»
Passing data between Factor and C
»
Passing pointers to C functions
»
Alien addresses
»
Alien expiry
Vocabulary
alien
Inputs
c-ptr
a
c-ptr
Outputs
?
a
boolean
Word description
Tests if the alien is a relic from an earlier session. A byte array is never considered to have expired, whereas passing
f
always yields true.
Definition
IN:
alien
GENERIC:
expired?
( c-ptr -- ? )
flushable
Methods
USING:
accessors
alien
;
M:
alien
expired?
expired>>
;
USING:
alien
kernel
;
M:
f
expired?
drop
t
;