mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.
14 lines
193 B
Nim
14 lines
193 B
Nim
discard """
|
|
output: "my object68"
|
|
"""
|
|
|
|
import mexporta
|
|
|
|
# bug #1029:
|
|
from nativesockets import accept
|
|
|
|
# B.TMyObject has been imported implicitly here:
|
|
var x: TMyObject
|
|
echo($x, q(0), q"0")
|
|
|