[Coco] DEFFN in Extended BASIC

Allen Huffman alsplace at pobox.com
Sun Jan 4 00:33:18 EST 2015


> On Jan 3, 2015, at 11:17 PM, William Astle <lost at l-w.ca> wrote:
> 
> It actually doesn't.
> 
> There is no code to handle multiple parameter variables in the ROM.

Then why does it print correct answers?

10 DEFFNA(A B C D)=A+B+C+D
20 A=1:B=10:C=100:C=1000
30 PRINT FNA(1 10 100 1000)

…prints 1111.

Tests show it does not work with direct numbers like FNA(1 2 3 4) but works with variables.

		— Allen




More information about the Coco mailing list