2016-11-29 05:25:08 +00:00
|
|
|
#class(#byte) Stdio(Object) from 'stdio'
|
2016-11-18 18:11:13 +00:00
|
|
|
{
|
2016-12-05 15:44:53 +00:00
|
|
|
## #method(#class) _newInstSize
|
|
|
|
## {
|
|
|
|
## <primitive: #stdio._newInstSize>
|
|
|
|
## }
|
2016-11-21 13:56:20 +00:00
|
|
|
|
2016-11-18 18:11:13 +00:00
|
|
|
#method(#class) new: size
|
|
|
|
{
|
|
|
|
##self prohibited
|
|
|
|
##raise exception. prohibited...
|
2016-11-27 15:37:14 +00:00
|
|
|
^(super new: (self _newInstSize))
|
2016-11-18 18:11:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#method(#class) new
|
|
|
|
{
|
|
|
|
##self prohibited
|
|
|
|
##raise exception. prohibited...
|
2016-11-27 15:37:14 +00:00
|
|
|
^(super new: (self _newInstSize))
|
2016-11-18 18:11:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#method(#class) open: name for: mode
|
|
|
|
{
|
2016-12-03 18:08:31 +00:00
|
|
|
^(self new) open: name for: mode
|
2016-11-18 18:11:13 +00:00
|
|
|
}
|
|
|
|
|
2016-12-03 18:08:31 +00:00
|
|
|
## #method open: name for: mode
|
|
|
|
## {
|
2016-12-05 15:44:53 +00:00
|
|
|
## <primitive: #stdio.open>
|
2016-12-03 18:08:31 +00:00
|
|
|
## }
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2016-12-03 18:08:31 +00:00
|
|
|
## #method close
|
|
|
|
## {
|
2016-12-05 15:44:53 +00:00
|
|
|
## <primitive: #stdio.close>
|
2016-12-03 18:08:31 +00:00
|
|
|
## }
|
2016-11-27 15:37:14 +00:00
|
|
|
}
|
2016-11-18 18:11:13 +00:00
|
|
|
|
2016-11-27 15:37:14 +00:00
|
|
|
#extend Stdio
|
|
|
|
{
|
|
|
|
#method xxxx
|
2016-11-18 18:11:13 +00:00
|
|
|
{
|
|
|
|
self basicSize dump.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-27 15:37:14 +00:00
|
|
|
#class(#byte) Stdio2(Stdio)
|
2016-11-18 18:11:13 +00:00
|
|
|
{
|
2016-11-21 13:56:20 +00:00
|
|
|
#method(#class) new
|
|
|
|
{
|
|
|
|
##self prohibited
|
|
|
|
##raise exception. prohibited...
|
|
|
|
^(super new).
|
|
|
|
}
|
|
|
|
|
2016-11-18 18:11:13 +00:00
|
|
|
}
|