Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2024-01

Trash variables (-gt) - Translation

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LacaK

Hi *,
I am translating "Trash variables" (from English to Slovak), but I can not find appropriate words.
That's why I want to describe it in more words.
Is this correct: "Initialize local variables with random values" ? Or better suggestion?
Thanks
-Laco.

https://www.freepascal.org/docs-html/user/userap1.html: -gt        Trash local variables (to detect uninitialized uses; multiple 't' changes the trashing value)

Michael Van Canneyt
to LacaK
LacaK wrote 6 lines
Hi *, I am translating "Trash variables" (from English to Slovak), but I can not find appropriate words. That's why I want to describe it in more words. Is this correct: "Initialize local variables with random values" ? Or better suggestion?

That seems most correct to me.

Michael.

Adriaan van Os
to LacaK: I am translating "Trash variables" (from English to Slovak), but I can not find…
LacaK wrote 6 lines
Hi *, I am translating "Trash variables" (from English to Slovak), but I can not find appropriate words. That's why I want to describe it in more words. Is this correct: "Initialize local variables with random values" ? Or better suggestion?

I once had a bug in a software package, written by me and running at a customer site, that turned out to be caused by an incorrect translation (into Dutch) of a book by Peter Norton. Since then, I refuse to read computer books in another language than the original one .....

Regards,

Adriaan van Os

Pierre Muller
to Michael Van Canneyt: That seems most correct to me. Michael.

Le 18/01/2024 à 08:57, Michael Van Canneyt via fpc-pascal a écrit :

Show quoted text 12 lines
On Thu, 18 Jan 2024, LacaK via fpc-pascal wrote: > Hi *, > I am translating "Trash variables" (from English to Slovak), but I can > not find appropriate words. > That's why I want to describe it in more words. > Is this correct: "Initialize local variables with random values" ? Or > better suggestion? That seems most correct to me.

I think it is more something like 'specific pattern values' which are different depending on the number of 't' (extracted from current trunk):
./globals.pas:126: trashintvalues: array[0..nroftrashvalues-1] of int64 = ($5555555555555555,$AAAAAAAAAAAAAAAA,$EFEFEFEFEFEFEFEF,0);

Thus -gt will use $5555555555555555 pattern, -gtt will use $AAAAAAAAAAAAAAAA pattern,
-gttt will use $EFEFEFEFEFEFEFEF pattern,
-gtttt will use $0000000000000000 pattern
for 'trashing' of local variables.

Pierre