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.

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: Windows-Compile C library to be used with Nim

2017-03-01 Thread geekboy
Thanks everyone. I finally found out that the library I was using, was built using a 32 bit compiler and my nim application was built using a 64 bit compiler. This links below can shed more light *

Re: Dynamic Types

2017-02-28 Thread geekboy
Thanks everyone. I used inheritance as suggested by Krux and A.

Windows-Compile C library to be used with Nim

2017-02-28 Thread geekboy
I am trying to create a dll from a simple C program to be used with a nim application. I tried using visual c++ compiler and gcc(mingw), but the I couldn't load the resulting dll using dynlib. I have successfully used the same nim function with various other dlls. Is there some special flags to

Dynamic Types

2017-02-15 Thread geekboy
I am a novice in nim and don't know much about the type system. I went through the documentation and found this out > All expressions have a type which is known at compile time. Nim is statically > typed. Is there any way I can create typed variables at runtime? Here is what I am trying to