Re: Can you document programs in the code?


[Prev][Next][Index][Thread]

Re: Can you document programs in the code?



In article <36a626f8.20936664@news.msu.edu>, Dale Kane
<kanedale@pilot.msu.edu> writes

[How do I comment code?]

You can include comment lines in TI-Basic by leading with a quote mark:

r*tan(df/2)->tl
"Compute tangent length
df/180*pi*r->cl
"Compute curve length

Problems:
A quoted comment is evaluated as a string but not assigned, so it slows
code down, as well as eating RAM. It gums up the Ans variable. It can't
include an assignment sign (the calc interprets this as assignment to a
string).

--
|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Stuart Dawson            Dawson Engineering
sd@dawson-eng.demon.co.uk
http://www.dawson-eng.demon.co.uk/nexus.htm
Belfast, Northern Ireland   +44 1232 640669
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|


References: