[fpc-pascal] "Address of" question

Hairy Pixels genericptr at gmail.com
Sun Jan 14 09:44:14 CET 2024


I just noticed it's possible to do @Byte in FPC. Are these 2 lines even different? It doesn't exactly make sense to take the address of a type identifier so I'm curious what this may mean.

var
  b: Byte;
  p: PByte;
begin
  p := @Byte(b);
  p := PByte(@b);



Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list