The example from the tutorial is a bit misleading, try the updated [version 
from the language 
manual](https://nim-lang.org/docs/manual.html#procedures-properties) instead. 
The _host_ field of a _Socket_ object is invisible to code from a different 
module, but the tutorial example code accesses it directly from **within the 
same module** with _s.host = 34_.

Reply via email to