23983Re: [midatlanticretro] Re: GREAT news - VCF keynote
- Jan 6, 2012"ysgdhio" <ysgdhio@...> writes:
>--- In firstname.lastname@example.org, system@... wrote: > I didn't----------------------------------------^^^^^^^^^^^^
>need all those lines or line numbers: >=20 > DECLARE STRING CONSTANT
>T=3D"AWESOME!" > PRINT SPACE$(I);MID$(T,I,1) FOR I=3D1 TO LEN(T)
>BASIC-80 Rev. 5.21
>[CP/M Version] Copyright 1977-1981 (C) by Microsoft
>Created: 28-Jul-81 34872 Bytes free OkYou missed the fatal error message above. ;) :P :)
>DECLARE STRING CONSTANT="AWESOME!"
>Syntax error Ok
>PRINT SPACE$(I);MID$(T,I,1) FOR I=1 TO LEN(T)
>I guess that's FORTRAN.No, it's definitely BASIC but it's compiled, not interpreted, BASIC.
Declaring the string constant removes the copy of the literal string
into the variable; thus, making it more efficient since there is no
write or update to the string variable and therefore, no need for a
string variable. It's all just read. Doing so trimmed abotu 50 in-
structions from the original posted code.
FWIW, the original doesn't run on my Sharp EL-5500.
- << Previous post in topic Next post in topic >>