back

by AlexeyBrin·2y ago·view on hn ↗
The BASIC version that run BBC Micro had proper functions and subroutines with local variables (I think it even had recursion, but I'm not 100% sure).

AFAIK, all Microsoft BASIC (of which AppleSoft BASIC was a descendent) versions did not have the above until QBasic.

1 comments
It did have recursion.

    >LIST
       10PRINT FNFACT(6)  
       20END
       30DEFFNFACT(N) 
       40IF N=1 THEN =1 ELSE =N*FNFACT(N-1)  

    >RUN
           720
Thanks for letting me know, BBC BASIC was indeed advanced for the period.