miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

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

Open marcgurevitx opened this issue 1 year ago • 1 comments

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.

marcgurevitx avatar Mar 18 '24 12:03 marcgurevitx

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.

Withered-Flower-0422 avatar Mar 18 '24 12:03 Withered-Flower-0422