Re: [fpc-pascal] Feature announcement: implicit generic function specializations

2022-04-24 Thread Hairy Pixels via fpc-pascal
> On Apr 23, 2022, at 9:09 PM, Hairy Pixels wrote: > > The two languages I use commonly these days are Swift and C#, both of which > do implicit function specialization by default. After you use a generic > function a couple times it becomes apparent the compiler could infer the > types and

Re: [fpc-pascal] Feature announcement: implicit generic function specializations

2022-04-24 Thread Marco van de Voort via fpc-pascal
Op 24/04/2022 om 04:37 schreef Hairy Pixels via fpc-pascal: On Apr 23, 2022, at 10:30 PM, Marco van de Voort via fpc-pascal wrote: Btw since you are afaik an Apple user, did you actually use conformant arrays, or do you base this on UCSD/Borland dialects only? I started with THINK Pascal o

Re: [fpc-pascal] What's wrong with Leave?

2022-04-24 Thread Jonas Maebe via fpc-pascal
On 24/04/2022 15:30, Виктор Матузенко via fpc-pascal wrote: The test program: begin {$IF Declared(Leave)} Leave; {$ENDIF} end. "Leave" is declared as an intrinsic in the system unit because in MacPas mode it means the same as "break" in UCSD-derivates. We don't have support in the compi

[fpc-pascal] What's wrong with Leave?

2022-04-24 Thread Виктор Матузенко via fpc-pascal
The test program: begin {$IF Declared(Leave)} Leave; {$ENDIF} end. The compilation error: D:\data\temp>fpc -Mfpc leave_example.pas Free Pascal Compiler version 3.2.1 [2021/02/01] for i386 Copyright (c) 1993-2020 by Florian Klaempfl and othe

Re: [fpc-pascal] Possible fpdebug issue

2022-04-24 Thread Martin Frb via fpc-pascal
Lazarus 2.2 or 2.3 ? In 2.3 some work has been started to debug into dll... Is there a way to reproduce this? Also try: lazarus.exe  --debug-log=c:\logfile.txt --debug-enable=DBG_EVENTS,DBG_VERBOSE,DBG_WARNINGS,DBG_ERRORS,DBG_VERBOSE_BRKPOINT,DBG_STATE,DBG_COMMAND_ECHO,DBG_DATA_MONITORS,DBG_LOCA