-
-
Save Yardanico/495a87da26c08c441509267f98b60864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef NU8 tyEnum_EnumKind__HznZsN6fMsJhxEwk9c3lM7A; | |
struct NimStrPayload { | |
NI cap; | |
NIM_CHAR data[SEQ_DECL_SIZE]; | |
}; | |
struct NimStringV2 { | |
NI len; | |
NimStrPayload* p; | |
}; | |
struct tyObject_Test__u05pFSL5Fo2sfuv1oH9btJw { | |
tyEnum_EnumKind__HznZsN6fMsJhxEwk9c3lM7A kind; | |
union{ | |
NimStringV2 data; | |
NI test; | |
NF ok; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
EnumKind = enum | |
Tata, Lol,Fa | |
Test* = object | |
case kind*: EnumKind | |
of Tata: data: string | |
of Lol: test: int | |
of Fa: ok: float | |
let a = Test(kind: Tata, data: "hello") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment