I tested it @araq

Problem with "devel" it that the current Nim compiler is having problems with:
    
    
    proc nimxPrivateStringify*[T](v: T): string {.inline.} = $v
    proc nimxPrivateStringify*(v: string): string {.inline.} =
        result = v
        if result.isNil: result = "(nil)"
    
    var currentOffset {.threadvar.}: string
    
    proc logi*(a: varargs[string, nimxPrivateStringify]) {.gcsafe.} =
        if currentOffset.isNil: currentOffset = ""
        native_log(currentOffset & a.join())
    

in "system_logger.nim" of nimx.
    
    
    testnimx.nim(17, 1) template/generic instantiation from here
    .../sdl_window.nim(335, 14) Error: attempting to call undeclared routine: 
'nimxPrivateStringify'
    

You can clone and install nimx and then change line 58 in "system_logger.nim" 
from
    
    
    proc logi*(a: varargs[string, nimxPrivateStringify]) {.gcsafe.} =
    

to
    
    
    proc logi*(a: varargs[string, `$`]) {.gcsafe.} =
    

as workaround until the compiler gets fixed. This will of course weaken the 
error reporting of nimx overall. 

Reply via email to