Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2018-12

  1. inlining functions depending on implementation only functions

    after updating from fpc 3.1 to fpc 3.3, I am getting a lot of "function was not inlined" warnings, e.g. when an inline function depends on a function not declared in the…

    Benito van der Zander, denisgolovan, Jonas Maebe
    17
  2. SetLength warnings - request

      even if there's closed issue https://bugs.freepascal.org/view.php?id=34169 I would like to ask if it can be reconsidered.   The subject is that SetLength now gives…

    Vojtěch Čihák, Benito van der Zander, Derek Edson
    22
  3. Fixes 3.2: make all fails

    OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10) Installed fpc 3.0.4 form rpm. (b.t.w. when clicking on the link for…

    Bart, Marco van de Voort
    3
  4. Rest in peace Martin Schreiber

    Today I became aware of very sad news. Martin Schreiber, author of the MSEide+MSEgui project, has unexpected succumbed of cardiac arrest on 29 November 2018. He was an…

    Graeme Geldenhuys, Bart, Ched
    13
  5. Default properties wiki

    I decided to make a wiki going over all the details of default properties which I’ve covered so far, including various usage examples. There’s some questionable…

    Ryan Joseph, Ben Grasset
    1
  6. Candidate for crowd-funding

    Hi all I decided to start a separate thread for asking about potential candidate for crowd-funding. My personal wish-list is: - support for array calculations /…

    denisgolovan, Graeme Geldenhuys, Jonas Maebe
    17
  7. pas2js: Compiler options as Hints in SRC files

    Hi All! I want to use modules/functions/classes (generated from Pas sources by writed manually. In this case i can have some modules/functions/classes not used from other

    serge vertie, Michael Van Canneyt
    1
  8. TThread.FreeOnTerminate

    Is there a way to use FreeOnTerminate other that setting it in the constructor (or before the thread starts / or in the rather complex manner below)? The doc does not…

    Martin, el es, George Bakhtadze
    20
  9. Assign int64 to int32 shows no warnings at compilation time

    Is there a FPC command line parameter to enable warnings or errors for the following situation at compile time? All logic tells me that detecting this an runtime only is…

    Graeme Geldenhuys, Jonas Maebe
    5
  10. How do I take the float type of a field from a record?

    Hi. Please consider the following code: uses TypInfo; type TTestRecord = record Member1: LongInt; Member2: Double; Member3: string; Member4: Extended; end; var F:…

    silvioprog
    2
  11. Ho to convert a special format of datetime?

    I'd like to convert this date "2017-01-11T17:47:22.2912317-02:00" to TDatetime. It seems probably it exists in Freepascal, but I don't know. So, I ask, how to suply a…

    luciano de souza, Marco van de Voort, silvioprog
    3
  12. FPC-based http/s server

    Is there any open source, maintained and updated HTTP server using FPC out there? I need a lightweight HTTP server written in FPC that supports Linux/Unix, F/CGI app,…

    Mr Bee, Alexander Grotewohl, Bo Berglund
    4
  13. Generic (TFPGObjectList) EInvalidCast

      why this code gives EInvalidCast at runtime (but compiles well):w   program Project1; {$mode objfpc}{$H+}   uses   {$IFDEF UNIX}{$IFDEF UseCThreads}  …

    Vojtěch Čihák, Mattias Gaertner
    4
  14. precedence "is" and "and"

    According to the docs, the "is" operator is fourth level, the "and" is second level, so the "and" must be computed before the "is". But it seems fpc treats "is" and…

    Mattias Gaertner, Marco van de Voort, Martin Wynne
    10
  15. Implicit generic specializations

    Since I had was already working on generics I wanted to see if I could implement the inferred specializations like is available in Delphi. The current syntax is too…

    Ryan Joseph, denisgolovan, Martok
    13
  16. Proud to announce..

    Hello ! If anyone still doubted that Object Pascal is the best programming language, running on the most platforms: It is with considerable pride that I can announce a…

    Michael Van Canneyt, Marc Hanisch
    1
  17. Can't determine which overloaded function to call

    this code compiles for target Win32 but does not compile for Win64/x86-64. Why? Is there workaround? (Error: Can't determine which overloaded function to call) Thank you…

    LacaK, Jonas Maebe, Santiago A.
    5
  18. Object questions

    Some questions about old-style objects. 1) How can you check if self is assigned? self refers to the struct itself but if the object was allocated on the stack then how…

    Ryan Joseph, Sven Barth
    3
  19. Generics question

    { TFoo } generic TFoo<T> = class procedure Bar; end; { TFoo } procedure TFoo.Bar; procedure localproc; begin end; begin end; This will not compile (fpc 3.0.4):…

    Bart, Martok, Sven Barth
    4
  20. How to get ANSI code command return value?

    I'm playing around with ANSI code (ESC sequence) on the console. Sending an escape command is trivial such as changing text's color and background. However, getting a…

    Mr Bee, Sven Barth
    2
  21. Building trunk

    I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't think I have changed…

    C Western, - -, Colin Western
    29