Sign in Join

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

Mailing lists / fpc-pascal / 2024-12

pointer type as procedure arg

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi,

Are anonymous (aka local) pointer types allowed in procedure arguments in any mode?

procedure Run(p: ^word);
begin
end;

I found that the fcl-passrc parser has a test to allow it and I'm wondering if this is by design or a bug.

Mattias

Reply by email

Florian Klämpfl
to Mattias Gaertner
Show quoted text 5 lines
Am 30.12.2024 um 12:00 schrieb Mattias Gaertner via fpc-pascal : Hi, Are anonymous (aka local) pointer types allowed in procedure arguments in any mode?

I am not aware of.

Show quoted text 12 lines
procedure Run(p: ^word); begin end; I found that the fcl-passrc parser has a test to allow it and I'm wondering if this is by design or a bug. Mattias _______________________________________________ fpc-pascal maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email