Created
March 18, 2015 23:20
-
-
Save fowlmouth/d6711a76e37dd660d607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
jsobj {.importc.} = object | |
update*: proc(){.nimcall.} | |
d3_obj {.importc.} = object | |
linear* : proc(): jsobj{.nimcall.} | |
# this might work, to make it callable, i doubt it though | |
proc `()` (obj:jsobj; scale:float): float {.importc.} | |
var d3test {.importc,nodecl.}: d3_obj | |
var s = d3test.linear() | |
s.update() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment