[fpc-devel] Broken cookies?

2025-08-29 Thread David Connolly via fpc-devel
Hi all, I have a small test program simple.pas (included) When I compile and run it I get an exception. I've traced the problem to some cookie changes made to *fphttpclient.pp*. Bypassing that, there's another problem handling the format of the 'expires' cookie attribute in *httpdefs.pp*. FPC 3.

Re: [fpc-devel] if-then-else expression

2025-08-29 Thread Stefan Glienke via fpc-devel
Parameter evaluation order is ub so you cannot rely on that, regardless of inlining. And even though the intrinsic could behave differently it still looks like a regular function call and also might clash with existing similarly named existing function. > On 27/08/2025 16:40 CEST Hairy Pixels v

Re: [fpc-devel] if-then-else expression

2025-08-29 Thread Sven Barth via fpc-devel
Hairy Pixels via fpc-devel schrieb am Do., 28. Aug. 2025, 09:55: > On Aug 26, 2025 at 3:49:43 AM, Nikolay Nikolov via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > >> But they're not 100% compatible, are they? IfThen evaluates both the true >> and the false parameter, while the 'if' stat

Re: [fpc-devel] if-then-else expression

2025-08-29 Thread Sven Barth via fpc-devel
Hairy Pixels via fpc-devel schrieb am Di., 26. Aug. 2025, 09:53: > On Aug 24, 2025 at 3:28:45 PM, Karoly Balogh via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > >> The new syntax has strong Python vibes to me. This is where I saw/used >> this the most. Which is not necessarily a bad thi

Re: [fpc-devel] if-then-else expression

2025-08-29 Thread Mattias Gaertner via fpc-devel
On 8/27/25 16:40, Hairy Pixels via fpc-devel wrote: On Aug 26, 2025 at 3:49:43 AM, Nikolay Nikolov via fpc-devel < fpc-devel@lists.freepascal.org> wrote: [] I think if the call was inlined it wouldn’t but otherwise it would. Inlining must not change the behavior. Nikolay is right, that