Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2018-11

  1. 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
  2. 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
  3. 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
  4. Default record const values

    Should’t this work? This would be a good way to set default record values but it doesn’t seem to be supported. type TMyRecord = record public a: integer; b: string;…

    Ryan Joseph, Ben Grasset, Benjamin Rosseaux
    18
  5. Adding options when building packages

    Since upgrading to Mac OS 10.14 a file has moved in the system which needs to be linked to. I’m able to work around this by adding a search path to the compiler…

    Ryan Joseph, Dmitry Boyarintsev
    1
  6. TStringList.DelimitedText seems not to work...

    FPC 3.0.4 with Lazarus 1.8.0 on Windows 7 x64 I am trying to use TStringList containers for parsing out values of this kind for sending to a database handler script:…

    Bo Berglund, Michael Van Canneyt
    2
  7. C-blocks

    Can c-blocks support Jonas added for Cocoa support be extended to other platforms or is this stuck with OS X? It uses a runtime library by Apple but is it possible to…

    Ryan Joseph, Sven Barth
    9
  8. Passing nested procs out?

    Is passing nested procs outside of the calling scope relying on undefined behavior? It doesn’t seem like this should be allowed. ===========================…

    Ryan Joseph, Marcos Douglas B. Santos, Sven Barth
    6
  9. Uniform initialization?

    Since I’ve got a little more free time I wanted to see if there was a simple solution to issue in Pascal that causes quite a bit of friction for me, i.e. constructor…

    Ryan Joseph, leledumbo, Martin Wynne
    14
  10. Windows programming tutorials for FPC

    I've been programming for decades with Pascal, starting with Turbo Pascal, and for a few years now with Freepascal, and even wrote really complicated console windows…

    James, Alexander Grotewohl, Bo Berglund
    30
  11. Running tests with FPC units only

    I am blind, so I don't use Lazarus. In pure Freepascal, I tried to run an example test: program tester; {$mode objfpc}{$H+} uses fpcunit, testregistry; type TMyTest =…

    luciano de souza, leledumbo
    2
  12. INSTALL_PREFIX, INSTALL_LIBDIR

    How to control where 'make install' puts the libraries (e.g. libpas2js.so)? I tried "INSTALL_LIBDIR=~/tmp/lib64", but that moves everything *except* libraries to…

    Mattias Gaertner, christo, Christo Crause
    3
  13. Restricted generic param types

    I’m getting a parse error here. It thinks the “U” is another type but in fact it’s another generic parameter and not related to this a bug? I don’t think the…

    Ryan Joseph, Sven Barth
    1
  14. Dynamic array bug

    I finally built the trunk today (version 3.3.1) to try new dynamic array features and a bug fix Sven did a while ago but I’m still getting errors. Did I get the wrong…

    Ryan Joseph, silvioprog
    9
  15. Firebird vs. SQLite vs. PosgreSQL

    This isn't a Free Pascal question but I wanted to ask about the Firebird database [1] because it seems as the Free Pascal community uses it the most by far, so I hope it…

    aditya siram, Elmar Haneke, LacaK
    2
  16. pas2jni issues

    I would like to make a suggestion regarding the generated code of the pas2jni utility, and report an issue. This utility generates a java file called system.java. First…

    Unknown author, Yuriy Sydorov
    4
  17. Building FPC from sources on Linux Mint 19, make clean errors out

    I have jsut createda virtual Linux Mint 19 x86_64 machine on which I attempted to install FPC 3.0.4 and Lazarus 1.8.5 (the fixes branch). I got as far as: - FPC 3.0.0…

    Bo Berglund, Dimitrios Chr. Ioannidis
    2
  18. fpc.cfg using relative paths

    Is there, any change, to use relative paths inside fpc.cfg? I have several Lazarus copies, in different paths, and I would like to use the same fpc.cfg on all of them.…

    Marcos Douglas B. Santos, Fabio Luis Girardi
    2
  19. Listing the type (even as string) of the parameters and the return of a function

    Hi. First, thanks for the great work in the invoke.inc for win64! ☺ So, consider the following example: uses RTTI; type TFoo = class public function Bar(const A:…

    silvioprog, Sven Barth
    5
  20. MSEide+MSEgui 4.6.2

    MSEide+MSEgui version 4.6.2 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.6.2/ Have a lot of fun! Martin

    Martin Schreiber
    0
  21. fphttpclient.post

    I'm using fphttpclient.simpleget to make querries to webserver. It's very very simple to use this function ! "Du pur bonheur". As some data which travel the world…

    Ched, Michael Van Canneyt, Sven Barth
    4