Re: How to put comment on HPUserEdit



On 27 mai, 10:01, "John H Meyers" <jhmey...@xxxxxxxxxxxxxx> wrote:
On Sat, 26 May 2007 21:14:30 -0500:

I just want to comment my code in HPUserEdit;
what is the string i must put to recognize as a comment.

Anything preceded by "@"
(or between two consecutive "@" on the same line)
is ignored by the on-board compiler,
and thus is a "comment."

"@" within a quoted string is part of the string,
however, and is retained.

You can thus sprinkle comments throughout "source" files
on your computer, which you can transfer to your calc,
but when you display transferred programs on your calc,
all comments will have disappeared (and the program
will have been reformatted), because the program
becomes a pure binary internal file (without comments)
when compiled, just as when typed into the on-board editor,
and any subsequent display is later generated
by de-compiling that binary to re-create brand new readable text,
which isn't the original source text,
so there is no point trying to type comments
on the calculator itself, unless you are editing
only a string, then using STR\-> on that string
to compile the program as a new object.

[r->] [OFF]

Thx alot :)

.



Relevant Pages

  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... Big-O notation isn't mathematics per se, it's computer science notation ... "length of the string". ... outrun something compiled and optimized by a good C compiler. ... > either general computing culture or culture outside computing. ...
    (comp.programming)
  • Re: [EGN] Hoisting Loop Invariants (Was: Re: [EGN] Numerical Accuracy)
    ... compiler out there somewhere that did as you claim. ... > the programmer has this knowledge, then the programmer should not use ... >> string in a loop, regardless of the blatant inefficiency of doing so. ...
    (comp.programming)
  • Re: How to convert Infix notation to postfix notation
    ... and make all strings const save where the intent ... function whose contract is to change the string. ... the compiler "just" prevents the string ... try to do using the pointer you get. ...
    (comp.lang.c)
  • Re: PL/I string representations
    ... >> of the language, so it was interesting to me, hopefully it will be to ... I found a workable compiler for Fortran in 1971 (with a bug ... >> The specified length is the minimum, and each time a character ... >> string is assigned to E, the length is stored with it. ...
    (comp.programming)
  • Why C Is Not My Favourite Programming Language
    ... C has no string type. ... compiler take care of the rest. ... Why does any normal language ... the programmer fail. ...
    (comp.lang.c)