Sign in Join

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

Mailing lists / fpc-devel

fpc-devel · 2022-05

  1. StdConvs: conversion to/from Kelvin is wrong?

    Fpc 3.3.1 === D := ConvUtils.Convert(100.0, tuCelsius, tuKelvin); write('100.0 Celsius --> ',D:12:4,' Kelvin --> '); D := ConvUtils.Convert(D, tuKelvin, tuCelsius);

    Bart
    0
  2. DEBUG_NODE_XML broken

    Building the compiler with -dDEBUG_NODE_XML got broken recently: C:/lazarus/fpc/3.2.0/bin/x86_64-win64/ppcx64.exe -Ur -Xs -O2 -n -Fux86_64 -Fusystems…

    J. Gareth Moreton, Sven Barth
    1
  3. Functors

    I propose that the support for https://en.wikipedia.org/wiki/Function_object be added to the FPC. A subset of such functionality already existed as a part of my…

    Unknown author, Martin Frb, Michael Van Canneyt
    17
  4. $modeswitch Closures

    The attached modeswitch_closures.patch introduces {$modeswitch Closures}; it is included in {$mode Delphi}. There is a distinction between anonymous routines (defined…

    Unknown author, Sven Barth
    1
  5. Initialising method pointers with class methods

    DCC allows the subj (provided that the class type is known at compile time), FPC does not. The attached init_methptr_with_classmeth.patch implements this feature.…

    Unknown author, Sven Barth
    1
  6. Assigning class methods, accessed via a class reference type, to procvars

    1) The attached metaclass_meth_to_procvar-1.patch fixes the internal error reported for: [ICE] Assigning class methods, accessed via a class reference type, to…

    Unknown author, Ozz Nixon, Ryan Joseph
    4
  7. Assigning instance methods, accessed via a type, to method pointers

    Subj silently produces invalid codegen: -------8<------- var Z: procedure of object; type R = record procedure Foo; end; procedure R.Foo; begin end; type O = object…

    Unknown author, Sven Barth
    1
  8. Parsing procedural type and method directives

    1) The following three routines: pdecsub.pas!parse_parameter_dec pdecvar.pas!maybe_parse_proc_directives ptype.pas!read_named_type\procvar_dec create a dummy typesym for…

    Unknown author, Sven Barth
    1
  9. Generic helper questions

    Over the weekend I did some work on how to implement generic helpers since this is something I wanted to do for a while and Sven said it was on the agenda. It’s "low…

    Hairy Pixels
    0
  10. Type+multi helpers overload bug

    Basically it looks like multi helpers don’t actually work with overloaded methods and simply choses the last helper declared. Should I fix this? Seems unlikely we…

    Hairy Pixels, Michael Van Canneyt
    1
  11. TShiftState

    Delphi has some extra TShiftState enums: ssTouch, ssPen, ssHorizontal https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TShiftState I propose for fpc to…

    Mattias Gaertner, Michael Van Canneyt
    2
  12. qoi image file format support

    Marģers ., Michael Van Canneyt
    1
  13. Questionable compiler side-effect with label names

    My laptop is in the repair shop again unfortunately due to a jammed cooling fan, so this e-mail may have indentation problems in the mailing list. That aside, I'm taking…

    J. Gareth Moreton
    0
  14. Regression in error message with implicit function specialization?

    Before if you tried to use a generic function without specialization you would get this error: Generics without specialization cannot be used as a type for a variable…

    Hairy Pixels
    0
  15. constant evaluation in generics params

    In the below code specialization takes a boolean constant. The compiler (kind of) allows expressions that can be evaluated at compile time. Of course     specialize…

    Martin Frb
    0
  16. const specialize = 1;

    is it allowed to use the identifier "specialize" as constant (or type or var)? Because it compiles with 3.3.1. (the line that defines the constant). But it seems it…

    Martin Frb
    0
  17. definition of "THREADNAME_INFO = record" IN procedure RaiseMSVCExceptionMethod in rtl\win\systhrd.inc

    https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-raiseexception In the below code some fields are 32bit (DWord). But according to msdn…

    Martin Frb
    0