dummzeuch 1505 Posted December 1, 2019 (edited) I just found code in the GExperts code formatter that treats the 'absolute' keyword in the same way in variable and type declarations. I know of only one way absolute can be used: procedure Bla; var Var1: array[0..4] of byte; Var2: integer absolute Var1; begin Var2 := 5; Assert(Var1[0] = 5); Assert(Var1[1] = 0); Assert(Var1[2] = 0); Assert(Var1[3] = 0); end; Declaring Var2 in this way means that it accesses the same memory as Var1. The Embarcadero documentation agrees with me. I know of no way to use 'absolute' in a type declaration. Am I missing something? Edited December 1, 2019 by dummzeuch Share this post Link to post
David Heffernan 2345 Posted December 1, 2019 18 minutes ago, dummzeuch said: Am I missing something? No. Share this post Link to post
baoquan.zuo 24 Posted December 2, 2019 I think `absolute` is treated as a keyword only after (global/local) "variable declarator" (`identifier-list ':' type`), otherwise, it is just an identifier. Share this post Link to post
Arnaud Bouchez 407 Posted December 2, 2019 (edited) Isn't it also used for some kind of Vodka ? - ok I am out (like the variables) Edited December 2, 2019 by Arnaud Bouchez 2 Share this post Link to post
Alain Weber 0 Posted December 3, 2019 Certainly to test big or little indian code Share this post Link to post
Lars Fosdal 1791 Posted December 3, 2019 Just now, Alain Weber said: Certainly to test big or little indian code <Images of General Custer flashing by...> 1 Share this post Link to post
dummzeuch 1505 Posted December 3, 2019 (edited) 2 hours ago, Alain Weber said: Certainly to test big or little indian code I had an Indian coworker once who was a bit "vertically challenged". We called her Little Indian. 😉 (No, we didn't actually. But she herself did sometimes.) Edited December 3, 2019 by dummzeuch 1 1 Share this post Link to post
Sherlock 663 Posted December 3, 2019 Guys! Please! I'm trying to work here! Now I have to go get a roll of Kleenex to clean the coffee from my monitors and keyboard... Thank you very much. 1 Share this post Link to post