moo/stix/kernel/Stdio.st

56 lines
772 B
Smalltalk
Raw Normal View History

#class(#byte) Stdio(Object) from 'stdio'
{
## #method(#class) _newInstSize
## {
## <primitive: #stdio._newInstSize>
## }
2016-11-21 13:56:20 +00:00
#method(#class) new: size
{
##self prohibited
##raise exception. prohibited...
^(super new: (self _newInstSize))
}
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new: (self _newInstSize))
}
#method(#class) open: name for: mode
{
^(self new) open: name for: mode
}
## #method open: name for: mode
## {
## <primitive: #stdio.open>
## }
## #method close
## {
## <primitive: #stdio.close>
## }
}
#extend Stdio
{
#method xxxx
{
self basicSize dump.
}
}
#class(#byte) Stdio2(Stdio)
{
2016-11-21 13:56:20 +00:00
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new).
}
}