Sign in Join

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

Mailing lists / fpc-devel

fpc-devel · 2018-04

  1. Wrong docs: not initialized global variables

    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…

    Ondrej Pokorny, Alexander Grotewohl, Alexander Klenin
    60
  2. What's the status of Maciej's Smart Pointer enhancements?

    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…

    Anthony Walter, Maciej Izak, Mattias Gaertner
    17
  3. Broken frac function in FPC3.1.1 / Windows x86_64

    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);…

    Unknown author, Bart, Florian Klaempfl
    36
  4. Re: Broken frac functionin FPC3.1.1 / Windows x86_64

    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…

    J. Gareth Moreton, Thorsten Engler
    2
  5. Re: Broken frac functioninFPC3.1.1 / Windows x86_64

    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…

    J. Gareth Moreton
    0
  6. Case of string

    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',…

    Bart, Alexander Klenin, Sven Barth
    5
  7. Request for applying patch #33124

    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

    Ondrej Pokorny, Dimitrios Chr. Ioannidis, Dmitry Boyarintsev
    12
  8. Dangerous optimization in CASE..OF

    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*.…

    Martok, Alexander Grotewohl, DaWorm
    127
  9. String constants to ObjC types

    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:…

    Dmitry Boyarintsev, Jonas Maebe
    1
  10. Type Compatibility: dynarray <=> Pointer

    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…

    Martok, Stefan Glienke, Thorsten Engler
    5
  11. Adding new message to compiler on Windows

    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…

    Ondrej Pokorny, Tomas Hajny
    4
  12. Creating Generic Object

      Currently, FPC allows declaring objects as var   MyMap: specialize TFPGMap<AnsiString, MyData>; This is very nice feature since I do not need define every…

    Amir, Bart, Sven Barth
    3
  13. AS/IS operators for enums

    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…

    Ondrej Pokorny
    0
  14. What's the status on the "record default field" functionality?

    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…

    Ben Grasset, Sven Barth
    1
  15. Some RTL bug fixes and suggestions

    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…

    NetSpirit, Florian Klämpfl, Sven Barth
    2
  16. Multiple variable initialization

    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.

    Ondrej Pokorny, Alexander Grotewohl, Anthony Walter
    26
  17. Vectorcall Fix

    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…

    J. Gareth Moreton
    1