Ah ok. Well what's a builtin type? In `system.nim`? In the stdlib? You can use
`macros.getType` and friends for compiletime introspection.
@Araq thanks for the suggestion . I already use nimsuggest. But I wanted to
check in code if a variable is of inbuilt or custom type.
Is there another way of writing
var iVar = 0x0.int
just (with a suffix or so) like
var i32var = 0x0i32
Fiddling with bit set variables from data protocols it would be nice to write
something like
iVar == 0x0
which
The issue seemed to have been a `nim c` instead of a `nim cpp` invocation.
Please use `nimsuggest` with your favourite editor. I move my mouse cursor over
an identifier to see where it comes from and you can do the same.
Is there a way to find out if a variable is of inbuilt type or a custom (user
defined) type? TIA
@ggibson, I was able to run your first example (the "importcpp") with additional
{.passC: "-Inimcache".}
at the very top of main.nim .
I don't know why but the error (the cannot find symbol error) was generated
because nimcache folder wasn't included in path, so you need to ad
@mashingan It works, thank you