Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C# != C++] Generated functions not unique in C# #148

Open
marcgurevitx opened this issue Mar 18, 2024 · 1 comment
Open

[C# != C++] Generated functions not unique in C# #148

marcgurevitx opened this issue Mar 18, 2024 · 1 comment

Comments

@marcgurevitx
Copy link
Contributor

The C# version (observed in Mini Micro) allows generated functions to be equal (==).

u = function
	f = function ; end function
	return @f
end function

print u == u

Prints 1 in Mini Micro vs 0 in command line.

@Withered-Flower-0422
Copy link

Withered-Flower-0422 commented Mar 18, 2024

I incline to the CL behavior, which produces 0 as a result.

]a = function; end function
]b = @a
]a = function; end function
]c = @a
]@b == @c
0

After all, the f is redefined after u is called, so they won't be same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants