Handbook
Glossary
imaginary>> ( object -- value )
Vocabulary
accessors
Inputs
object
an
object
Outputs
value
an
object
Definition
IN:
accessors
GENERIC:
imaginary>>
( object -- value )
Methods
USING:
accessors
alien.c-types
alien.complex
classes.struct
classes.struct.private
math
;
M:
complex-double
imaginary>>
T{
struct-slot-spec
{
name
"imaginary"
}
{
offset 8
}
{
class
float
}
{
initial 0.0
}
{
type
double
}
}
read-struct-slot
;
inline
USING:
accessors
alien.c-types
alien.complex
classes.struct
classes.struct.private
math
;
M:
complex-float
imaginary>>
T{
struct-slot-spec
{
name
"imaginary"
}
{
offset 4
}
{
class
float
}
{
initial 0.0
}
{
type
float
}
}
read-struct-slot
;
inline
USING:
accessors
kernel.private
math
slots.private
;
M:
complex
imaginary>>
3
slot
{
real
}
declare
;
inline