Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MSA2 and TP7 overlays (Announce)

posted by rr Homepage E-mail, Berlin, Germany, 03.12.2019, 21:34

> Anyways, actually I only wanted to mention this (N.B. the forum is getting
> confused with italics, so I renamed the var byte from "i" to "n"):

Nice find! This is caused by using italics for the word "exact" later. So, if you change "n" to "b" and use bold on "exact", that {b} will also disappear like the {i} before.

You can't even prevent it by enclosing the Pascal statement in {code}{/code}. I will report this behaviour to Heiko.

> > CALLER.PAS
> > procedure puts
> > for n:=1 to ord(s[0]) do putc(s[n]);
>
> I did put that one function in a separate file, just to prove a point. You
> can change "ord(s[0])" into "length(s)" (at least with TP 5.5), and the
> output .EXE has the exact same CRC32. My point is that it might be
> cleaner, clearer, and more portable to not assume the length is only a byte
> at offset 0. Compile-time calculations and constant expressions are useful
> indeed. Just FYI.

(Just cited to reproduce the bug.)

---
Forum admin

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 259 users online (0 registered, 259 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum