experimented on setting the number of fixed fields forcibly in a module import function - sck.addr, SocketAddress

This commit is contained in:
hyunghwan.chung
2018-01-09 13:43:44 +00:00
parent 5b7ad01194
commit 68259e735f
3 changed files with 23 additions and 16 deletions

View File

@ -208,20 +208,7 @@ class(#byte(16)) IP6Address(IP4Address)
##}
}
class(#byte(19)) SocketAddress(Object)
{
method(#primitive) port.
method(#primitive) port: port.
method(#primitive) ipaddr.
method(#primitive) ipaddr: ipaddr.
method fromString: str
{
}
}
class SocketAddress(Object) from 'sck.addr'
class(#byte) SocketAddress(Object) from 'sck.addr'
{
##method(#primitive) family.
method(#primitive) fromString: str.
@ -391,6 +378,11 @@ class MyObject(Object)
method(#class) main
{
| s conact inact outact |
SocketAddress new dump.
'****************************' dump.
(*
s:= X new: 20.
s basicSize dump.