Handbook
Glossary
major<< ( value object -- )
Vocabulary
accessors
Inputs
value
an
object
object
an
object
Outputs
None
Definition
IN:
accessors
GENERIC:
major<<
( value object -- )
Methods
USING:
accessors
kernel
math
semver
slots
slots.private
;
M:
semver
major<<
[
dup
integer?
[
\
integer
bad-slot-value
]
unless
]
dip
2
set-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
yaml.ffi
;
M:
version_directive_token_data
major<<
T{
struct-slot-spec
{
name
"major"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
int
}
}
write-struct-slot
;
inline
USING:
accessors
alien.c-types
classes.struct
classes.struct.private
math
yaml.ffi
;
M:
yaml_version_directive_t
major<<
T{
struct-slot-spec
{
name
"major"
}
{
offset 0
}
{
class
fixnum
}
{
initial 0
}
{
type
int
}
}
write-struct-slot
;
inline