fixes #6125
This commit is contained in:
parent
4e3bdcc84b
commit
44bd4d8774
2 changed files with 5 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue