Re: [fpc-pascal] bug or feature?

2022-02-14 Thread Elmar Haneke via fpc-pascal
This can't be right, can it? type TBird = class procedure Fly; end; TEagle = TBird; // alias procedure TEagle.Fly; begin end; It does depend on what you expect an Type-Alias to be. If you expect the compiler to generate an compatible class then your example must not be

Re: [fpc-pascal] IRC channel for FreePascal support ?

2023-04-18 Thread Elmar Haneke via fpc-pascal
Just my comments on IRC-Channels. I did enter the rooms #fpc #lazarus #lazarus-ide #fpc-alt #fpc-dev just to see whats going on on these channels a few days before. I have been contaced by johanna via direct talk asking some questions i I'm able programming pascal, something like how to

Re: [fpc-pascal] Pointer question

2023-08-10 Thread Elmar Haneke via fpc-pascal
1) what does "i := x - x;" do and what is it's purpose and why doesn't "x + x" work the same? Subtracting pointers may be useful if they point to consecutive memory. The Result is the number of bytes between both addresses. Adding pointers is useless, you would get a pointer pointing to

Re: [fpc-pascal] opening a serial port in a dll called from dot net fails

2024-03-11 Thread Elmar Haneke via fpc-pascal
Presumably the problem is caused by calling your function from a different thread. Perhaps it is a solution to put the SerOpen in a thread created by FPC and signal that thread from your dot-net-called function. Am 09.03.24 um 16:24 schrieb Luca Olivetti via fpc-pascal: I'm writing a dll