Re: Inbuilt vs Custom types

2017-03-08 Thread Araq
Ah ok. Well what's a builtin type? In `system.nim`? In the stdlib? You can use `macros.getType` and friends for compiletime introspection.

Re: Inbuilt vs Custom types

2017-03-08 Thread geekboy
@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.

integer literal cosmetics and sign extension

2017-03-08 Thread jordan
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

Re: Cannot import a file that has importcpp? Codegen issue?

2017-03-08 Thread Araq
The issue seemed to have been a `nim c` instead of a `nim cpp` invocation.

Re: Inbuilt vs Custom types

2017-03-08 Thread Araq
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.

Inbuilt vs Custom types

2017-03-08 Thread geekboy
Is there a way to find out if a variable is of inbuilt type or a custom (user defined) type? TIA

Re: Cannot import a file that has importcpp? Codegen issue?

2017-03-08 Thread mashingan
@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

Re: A question about importcpp and closure

2017-03-08 Thread LinGo
@mashingan It works, thank you