uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Validation: Check natives method implemented in native code #776

Open PalumboN opened 8 years ago

PalumboN commented 8 years ago

@javierfernandes says:

In general terms this shows that the natives mechanism is kind of fragile right now. I can think of two improvements:

When dispatching a native message if there are no method in the native but the method was declared as native in wollok then we should give an specific error message like "method blah() is declared native but not implemented natively !!" It would be great to have some kind of static check for this. It can be complex because the validator should resolve the native class from the classpath or something.

fdodino commented 8 years ago

:+1: having a validation check: "method blah() is declared native but not implemented natively !!"