Sign in Join

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

Mailing lists

fpc-pascal

Subscribe to this list Your subscription

All words must match. Use "exact phrase", -word, -"phrase", from:name, from:"first last", list:fpc-devel, year:2011, before:2012-03, after:2010, in:subject.

Latest threads

  1. Dos unit for Windows

    I have some problem with a file archiver which uses the Dos unit under Windows, I suspect the flaw resides in GetFAttr function. Looking in the source for Win RTL…

    Marco Borsari, Marco van de Voort
    2
  2. GDeque unit crash, FPC trunk

    I see stange crash in gdeque unit if I use unit from FPC trunk https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gdeque.pp crash in…

    AlexeyT, Marco van de Voort
    2
  3. AVR GetMem/AllocMem

      AFAIU dynamic allocation memory does not exist for AVR platform ( tried to use AllocMem, GetMem and the mcu restart it's self. ) . Is there any other way to…

    Dimitrios Chr. Ioannidis, Michael Ring, Ralf Quint
    4
  4. Re: fpc-pascal Digest, Vol 175, Issue 31

    I am not sure that I can help, but this is an interesting topic and I am curious if you find a solution. I can only assume that maybe you did not link to gcc and c…

    MARCOU Gilles
    0
  5. Conversion of buffer of UnicodeChars to AnsiString

    is there smarter way how to convert buffer of UnicodeChars to AnsiString taking into account codepage conversion as: as := String(UnicodeCharLenToString(buffer, buflen…

    LacaK
    0
  6. type helper default property

    For example: type THelper = type helper for string function GetItems(Index: word): word; property Items[Index: word]: word read GetItems; default; end; Delphi forbids…

    Mattias Gaertner, Sven Barth
    2
  7. type helper constructor

    A type helper for a string can add a constructor. But how it can be used differs between FPC and Delphi. For example: {$modeswitch typehelpers} type THelper = type…

    Mattias Gaertner, Sven Barth
    1
  8. 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
  9. type helpers

    A type helper can change Self. I wondered how FPC 3.3.1 handles properties and got some unexpected results. Is this by design, a bug, or not-yet-implemented? {$mode…

    Mattias Gaertner, Michael Van Canneyt, Sven Barth
    5
  10. 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
  11. Multi-scope helpers draft

    I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow multiple helpers per scope. I have no idea why Delphi thinks only one helper should be…

    Ryan Joseph, Mattias Gaertner, Sven Barth
    4
  12. Constants in generics

    I implemented a first draft of constants (integers) in generics. My reason was specifically that I wanted a way to add methods to static arrays and generic records is…

    Ryan Joseph, Alexander Shishkin, Ben Grasset
    95
  13. when will the size of an enumerated type change?

    Type    TComparisonMode = (cmThisOnly, cmThisAndThat, cmThisOrThat); TMyClass = class public var    ComparisonMode : TComparisonMode; end; I discovered that, the…

    Dennis, Michael Van Canneyt
    1
  14. Get "disk" ID

    I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. On Windows I can retreive the…

    Bart, Giuliano Colla, Graeme Geldenhuys
    3
  15. Small typo in User_Changes_Trunk ?

    reading http://wiki.freepascal.org/User_Changes_Trunk#Modeswitch_TypeHelpers_in_Delphi_modes_enables_type_helper-syntax there is: Remedy: The only problems arise if one…

    LacaK, Sven Barth
    2
  16. Interface bug or some new feature

    Hi all I've been using 3.1.1 compiler for a long time and now I am trying to upgrade to 3.3.1 from trunk. However, I am stuck with some new behavior when using classes +…

    denisgolovan, Jonas Maebe, Sven Barth
    7
  17. "crtbegin.o" not found

    What is that? I'm seeing that compiler warning in my fpGUI projects too? Since I upgraded to 3.0.4 using Linux 64-bit. It was not there in FPC 2.6.4. Below is a sample…

    Graeme Geldenhuys, Bart, Florian Klämpfl
    6
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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

Browse by month

2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999