fpc-devel · 2018-04
- Wrong docs: not initialized global variables60
Due to the "Multiple variable initialization" thread I took a look into FPC documentation: https://www.freepascal.org/docs-html/ref/refse24.html There it says: By…
- What's the status of Maciej's Smart Pointer enhancements?17
Here is a video overview of this message <http://cache.getlazarus.org/videos/smart-pointers.mp4> I've run into an almost must have use case for FPC smart pointers as…
- Broken frac function in FPC3.1.1 / Windows x86_6436
If you compile and run this 64-bit program on Win 64 you get a crash program tfrac; var x,y: double; begin x := 1e20; writeln('x=',x); y := frac(x);…
- Re: Broken frac functionin FPC3.1.1 / Windows x86_642
That's great to hear! Glad to help. For functions with no stack frame, the compiler simply puts RET at the very end of the routine and is all that's needed. For…
- Re: Broken frac functioninFPC3.1.1 / Windows x86_640
I stand corrected. Normally if I want to write a second epilogue, I simply compile the project and look at the disassembly, and copy what the compiler puts in for the…
- Case of string5
Case of string evaluation seems to have changed from 3.0.4 to trunk. program Project1; {$mode objfpc} {$h+} var s: string; begin repeat readln(s); case s of 'Hello',…
- Request for applying patch #3312412
Can somebody apply the patch at https://bugs.freepascal.org/view.php?id=33124 it's nothing serious, only a missing Cocoa header definition. Ondrej
- Dangerous optimization in CASE..OF127
continuing the discussion from bug 32079 here, as per request by Jonas. New thread instead of the DFA one because this is about a concrete issue *with the optimizer*.…
- String constants to ObjC types1
It's somewhat common task to convert a constant string to a selector. On Thu, Apr 19, 2018 at 8:43 PM, Dmitry Boyarintsev < The documentation:…
- Type Compatibility: dynarray <=> Pointer5
I have started debugging 0031215, and discovered something slightly unrelated, but odd. I hope someone can clear that up. While testing, I found out that the following…
- Adding new message to compiler on Windows4
how can I add a new compiler error message to fpc on Windows? The tutorial http://wiki.lazarus.freepascal.org/Message_files didn't help me because the command cd…
- Creating Generic Object3
Currently, FPC allows declaring objects as var MyMap: specialize TFPGMap<AnsiString, MyData>; This is very nice feature since I do not need define every…
- AS/IS operators for enums0
I uploaded a new patch to add enum support to AS/IS operators to https://bugs.freepascal.org/view.php?id=33603 1.) I added support for the IS operator. 2.) I added…
- What's the status on the "record default field" functionality?1
AFAIK it's been working for over a year in a separate branch. The smart pointer example demos worked perfectly as far as I could tell. Is there a particular reason it…
- Some RTL bug fixes and suggestions2
Anyone, who responsible to make fixes in code, please, check if my next suggestions can be applied. ============= In file 'rtl\win\wininc\struct.inc' need declare…
- Multiple variable initialization26
Is there a reason why multiple variable initialization is forbidden? program Test; var A: Integer = 0; // allowed B, C: Integer = 0; // not allowed begin end.
- Vectorcall Fix1
Sorry this took so long. There was a bug in my "vectorcall" submission in that if you specified "vectorcall" on a method under Linux (it might have been specifically a…
