Please,

I can this javascript code 
    
    
    var scene = new THREE.Scene();
    

using in nim js. Defing type
    
    
    type
        THREE* = ref THREEObj
        THREEObj {.importc.} = object
            Scene* {.importc.}: proc(): void
    
    {.push importcpp.}
    
    
    
    # var scene = new THREE.Scene();
    var scene = THREE.Scene()
    
    
    
    Error: object constructor needs an object type
    

Why create constructor?

thanks 

Reply via email to