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
Describe the bug
In the current implementation if a function is called with parameters of different types then the compiled C version of the function has the type from the final call, but the return type is set from the very first call. There can be two resolutions to this problem:-
Throw an error when types change
Name mangling (Follow this source if you don't know what name mangling means).
Steps to Reproduce
For this simC code:-
funsum(a, b) {
returna+b
}
MAINvarres=sum(1, 2)
varres1=sum(3.14, 4.2)
END_MAIN
Note: I have started a discussion for this, if anyone wants to work in this then please express your views regarding both the choices in this discussion:- 484.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the current implementation if a function is called with parameters of different types then the compiled C version of the function has the type from the final call, but the return type is set from the very first call. There can be two resolutions to this problem:-
Steps to Reproduce
For this simC code:-
The following C code is generated:-
Note: I have started a discussion for this, if anyone wants to work in this then please express your views regarding both the choices in this discussion:- 484.
The text was updated successfully, but these errors were encountered: