This commit is contained in:
Andreas Rumpf 2017-07-22 17:20:33 +02:00
commit 44bd4d8774
2 changed files with 5 additions and 10 deletions

View file

@ -233,15 +233,15 @@ is needed:
type
Socket* = ref object of RootObj
host: int # cannot be accessed from the outside of the module due to missing star
h: int # cannot be accessed from the outside of the module due to missing star
proc `host=`*(s: var Socket, value: int) {.inline.} =
## setter of host address
s.host = value
s.h = value
proc host*(s: Socket): int {.inline.} =
## getter of host address
s.host
s.h
var s: Socket
new s