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