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
But that is the same syntax as for an empty function. I think we should add an @interface decorator into ltypes, which would probably raise an exception if the function was ever being called (by CPython). In LPython, that would declare an interface, meaning the function with that name must be provided in global scope at some point before compiling to LLVM.
Activity
Smit-create commentedon Apr 2, 2022
Do you mean something like this?
Internally, we will handle
lpythonwhen it sees aninterfaceoperator, and CPython is not expected to call this function at all.certik commentedon Apr 2, 2022
Yes, exactly. (The CPython implementation I think has to be a nested function though.)
Smit-create commentedon Apr 3, 2022
Okay, I will try to get it implemented.