You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if isnative drawcircle
drawcircle 100, 100, 20
end
Not exactly sure how this should work syntactically though. If isnative foo is parsed like normal, then foo will run, so it would need to hack around that. But then isnative <expr> wouldn't work -- which is probably fine..?
Then you couldn't do dynamic function checks, but that's probably fine.
Also, I'd have to look to see if validating a program ensures that all native functions exist... because that would be wrong if isnative exists, since program code could contain native functions that are never executed.
The text was updated successfully, but these errors were encountered:
Should be able to write code like:
Not exactly sure how this should work syntactically though. If
isnative foo
is parsed like normal, thenfoo
will run, so it would need to hack around that. But thenisnative <expr>
wouldn't work -- which is probably fine..?Then you couldn't do dynamic function checks, but that's probably fine.
Also, I'd have to look to see if validating a program ensures that all native functions exist... because that would be wrong if
isnative
exists, since program code could contain native functions that are never executed.The text was updated successfully, but these errors were encountered: