AmiBlitz / AmiBlitz3

Complete package of AmiBlitz3 including all sources.
https://www.amiblitz.de/
120 stars 9 forks source link

Bug in "Function" #20

Open Nju79 opened 3 years ago

Nju79 commented 3 years ago

There is a bug with the parameters in functions-command. The following code print not the value 5, it prints the content at a memory addresses:

Function.b Test{@text.s} Function Return 5 End Function

NPrint Test{} End

This malfunction appears under this conditions:

The function works perfect if at least 1 parameter was passed. This is definitly a bug (fortunately with a workaround, when you pass a dummy parameter).

honitos commented 3 years ago

Nice! Lets see, what is the cause of that behaviour.