Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2020-10

  1. TypeInfo on generic templates

    Is it possible that the TypeInfo intrinsic could work with generic template types or is this a bug? I get "Illegal qualifier" in the procedure below. generic procedure…

    Ryan Joseph, Howard Page-Clark, Sven Barth
    3
  2. FPC 3.2fixes UTF8Decode strange place

    rtl/inc/ustrings.inc function UTF8ToUnicode(Dest: PUnicodeChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt; a) it has "If (PreChar13) and…

    AlexeyT, José Mejuto, Michael Van Canneyt
    4
  3. Lazarus complains that it cannot find a dependency, why?

    I get an error message when building a project after updating from SVN to get the sources that build fine on another RPi4 identical in configuration. "Fatal: Cannot find…

    Bo Berglund, Joost van der Sluis, Tomas Hajny
    7
  4. Is lazarus list down?

    I have not gotten any new posts on the Lazarus list since 2 weeks now (last seen was Oct 8th). Has it been stopped or is there a Gmane connectivity issue? I am…

    Bo Berglund, Winfried Bartnick
    2
  5. New package to evaluate Pascal-expressions

    Working on fpDebug, I've got onto a side-track and created an expression-evaluator based on fcl-passrc <http://lazarussupport.com/fpc-expression-evaluator/>. So that you…

    Joost van der Sluis, C Western, Michael Van Canneyt
    2
  6. Enum range check error

    Is this a bug in generics with default()? ===================== type TEnum = (Unused = '.'); generic TSomething<T> = class function Get: T; end; TEnumeratedSomething =…

    Ryan Joseph, Howard Page-Clark, Jonas Maebe
    6
  7. netdb, DNS and TCP

    To keep track of the work I've been doing on DNS in netdb, I created bug #37906 in Mantis. https://bugs.freepascal.org/view.php?id=37906 I've attached to a note on that…

    Noel Duffy, Michael Van Canneyt
    4
  8. Adding file to string to the RTL

    I often need to use a function which reads a file into a string, as is so common in so many scripting languages. Can it be considered to add something like this to the…

    Ryan Joseph, Alexander Grotewohl, Bart
    29
  9. Are record fields zeroed on declaration of a record?

    I would like to know if data containers of type packed record are zeroed when the item is declared? type TMyRecord = packed record AField1: byte; AField2: word; AField3:…

    Bo Berglund, gabor, Michael Van Canneyt
    10
  10. uses in '' relative paths

    I'm trying "uses in" which I never knew existed before. The idea is that I provide a path to TOML.pas using -Fu then use the "in" syntax to reference the units which are…

    Ryan Joseph, Marcos Douglas B. Santos, Mattias Gaertner
    5
  11. Precedence of compiler switches/directives

    I'm curious about who wins, if switches/directives are set to different values in different places. They could be set in fpg.cfg Command line or Lazarus lpi Directives…

    Peter, Michael Van Canneyt
    1
  12. Merging units

    Something that's bothered me for a while I wanted to ask about. I have a package I want to distribute which has 2 or more units, all of which are required to use the…

    Ryan Joseph, Marco van de Voort, Sven Barth
    4
  13. Re: Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets

    Hi From time to time i check, whether building the cross-compilers works on macOS. However, I do not really test the cross-compilers or even run fpc programs on these…

    Schindler Karl-Michael
    0
  14. Dynamic Arrays in Procedures

    I'm wondering if there is a way to pass an array of values to a Procedure without defining an array variable.. For example, if I have a Procedure: Procedure…

    James Richters, gabor, Howard Page-Clark
    5
  15. Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets

    I was wondering if there are still users of Free Pascal compiler targeting arm-nds, arm-gba or powerpc-wii. I recently managed to re-generate 3.2.0 cross-install files…

    Pierre Muller, code dz
    1
  16. Converting date formats

    I have some dates formats like this which I would like to convert to TDateTime. Are these supported in the RTL? I tried using the StrToDate functions but I got errors.…

    Ryan Joseph, Michael Van Canneyt, Winfried Bartnick
    6
  17. TOML parser

    I was going to do a YAML parser but I decided on TOML instead because: 1) appeared easier to parse 2) the format is simpler to understand/less bloated 3) looks nicer for…

    Ryan Joseph
    0
  18. TFPGMapObject duplicate errors

    I expected to get an assertion when I added the duplicate key "foo". What am I doing wrong? type TSomeMap = specialize TFPGMapObject<String, TObject>; var map: TSomeMap;…

    Ryan Joseph, Mattias Gaertner, Michael Van Canneyt
    5
  19. Cross platform question about lpi file content

    I am trying to find the cause of a linker error when building my application on Linux. While doing this I looked in the project file projname.lpi and found this strange…

    Bo Berglund, Michael Van Canneyt, Sven Barth
    6