Re: [fpc-pascal] "Address of" question

2024-01-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Jan 2024, Hairy Pixels via fpc-pascal wrote: 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)

[fpc-pascal] "Address of" question

2024-01-14 Thread Hairy Pixels via fpc-pascal
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 __