LISTO indentation

bbc micro/electron/atom/risc os coding queries and routines
Post Reply
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

LISTO indentation

Post by SparkyNZ »

I'm confused about LISTO.. In this video https://www.youtube.com/watch?v=ci_70naIg_Q, Gordon uses LISTO7 and gets the following indentation:
Image

When I try something similar on the b2 emulator, I get this:
Image

Why won't my NEXT L line up with the corresponding FOR L ?
User avatar
jgharston
Posts: 5321
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: LISTO indentation

Post by jgharston »

Depends on the BASIC you're using. Before BASIC IV the listing de-indented *after* the closing keyword instead of before.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Re: LISTO indentation

Post by SparkyNZ »

jgharston wrote: Sat Feb 24, 2024 3:31 am Depends on the BASIC you're using. Before BASIC IV the listing de-indented *after* the closing keyword instead of before.
Ah right.. so this is normal for BASIC 2. Thanks
Post Reply

Return to “programming”