according to the 
[manual](http://forum.nim-lang.org///nim-lang.org/docs/manual.html#types-cstring-type):

> The cstring type represents a pointer to a zero-terminated char array 
> compatible to the type char* in Ansi C. Its primary purpose lies in easy 
> interfacing with C

There is no mentioning of any usage for that type in javascript.

maybe something like this would make it a bit more transparent than a magic 
pragma 
    
    
    when cbackend:
      type cstring {.unchecked.} = ptr array[0, char]
    else:
      type cstring = ref otherstringtype
    

Reply via email to