moo/stix/kernel/Stdio.st

49 lines
613 B
Smalltalk
Raw Normal View History

#class(#word) Stdio(Object)
{
2016-11-21 13:56:20 +00:00
#method(#class) new: size
{
##self prohibited
##raise exception. prohibited...
2016-11-21 13:56:20 +00:00
^(super new: 1)
}
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
2016-11-21 13:56:20 +00:00
^(super new: 1)
}
#method(#class) open: name for: mode
{
^(super new: 1) open: name for: mode
}
#method open: name for: mode
{
<primitive: #stdio_open>
}
#method close
{
<primitive: #stdio_close>
}
#method xxx
{
self basicSize dump.
}
}
2016-11-21 13:56:20 +00:00
#class(#word) Stdio2(Stdio)
{
2016-11-21 13:56:20 +00:00
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new).
}
}