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
Currently use fn C.foo(), and when call with C.foo()
I proposol a syntax,
@[c_import: foo_inc]
fn foo(int) int
It use no body function feature, not need prefix with C. when call.
Also V can check function parameter type more, because it is a V function.
Also it can import as public/private function, resolve previous C.foo() confuse visibility problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently use fn
C.foo(), and when call withC.foo()I proposol a syntax,
It use no body function feature, not need prefix with
C.when call.Also V can check function parameter type more, because it is a V function.
Also it can import as public/private function, resolve previous
C.foo()confuse visibility problem.Now it can seem as a V function.
Beta Was this translation helpful? Give feedback.
All reactions