Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FYI FUNCTIONs and RETURN value
#1
I have seen a problem where if you call a function without a RETURN 0 with no return value in FUNCTION declaration e.g.

FUNCTION UFNprintText(printText$ AS STRING )

Sometimes the function will just crash the ZX Spectrum emulator

Adding a RETURN 0 makes it work.

Just thought you might know this?
Reply


Messages In This Thread
FYI FUNCTIONs and RETURN value - by RandomiserUsr - 02-27-2021, 12:07 PM
RE: FYI FUNCTIONs and RETURN value - by boriel - 02-28-2021, 05:35 PM
RE: FYI FUNCTIONs and RETURN value - by boriel - 02-28-2021, 06:42 PM
RE: FYI FUNCTIONs and RETURN value - by boriel - 03-15-2021, 08:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)