I found 1 issue, I wasn't using the `{.exportc.}` pragma (still a noob with any 
of the FFI stuff).

I'm still not able to call the second proc, the one passing the param. Here is 
the proc:
    
    
     nim
    proc delCompetitor(divIdNum :cint) {.exportc.} =
        echo "deleting competitor"
        if divIdNum != 1:
            var competitor = document.getElementById("competitor-" & 
$(divIdNum))
            competitor.remove()
        else:
            echo "cannot delete first competitor"
    
    
    
    Run

Reply via email to