fpc-devel · 2022-05
- StdConvs: conversion to/from Kelvin is wrong?0
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);
- DEBUG_NODE_XML broken1
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…
- Functors17
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…
- $modeswitch Closures1
The attached modeswitch_closures.patch introduces {$modeswitch Closures}; it is included in {$mode Delphi}. There is a distinction between anonymous routines (defined…
- Initialising method pointers with class methods1
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.…
- Assigning class methods, accessed via a class reference type, to procvars4
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…
- Assigning instance methods, accessed via a type, to method pointers1
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…
- Parsing procedural type and method directives1
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…
- Generic helper questions0
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…
- Type+multi helpers overload bug1
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…
- TShiftState2
Delphi has some extra TShiftState enums: ssTouch, ssPen, ssHorizontal https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TShiftState I propose for fpc to…
- 1
- Questionable compiler side-effect with label names0
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…
- Regression in error message with implicit function specialization?0
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…
- constant evaluation in generics params0
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…
- const specialize = 1;0
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…
- definition of "THREADNAME_INFO = record" IN procedure RaiseMSVCExceptionMethod in rtl\win\systhrd.inc0
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…
