Classic Computer Magazine Archive COMPUTE! ISSUE 60 / MAY 1985 / PAGE 10

More On Named Subroutines

A recent letter ("Readers Feedback," COMPUTE!, January 1985) suggested that certain home computers support named subroutines to a limited extent. I should like to add that the Timex/Sinclair does so to a greater extent than do the machines mentioned.

This is due to the fact that the Timex/Sinclair will evaluate anything which follows a GOTO or GOSUB. If one has a subroutine called HEADPRINT and that subroutine has an entry point at line 2700, all that is necessary is to use GOSUB HEADPRINT, provided that the statement LET HEADPRINT = 2700 has been executed before the call.

Numeric variable names on the Timex/Sinclair may be of any length and all characters are significant.

Samuel G. Allen

Thanks for reminding us. The Timex/Sinclair computers contain an impressive version of BASIC. By the way, the features you mention also are available in Atari BASIC.