fpc-pascal · 2020-10
- TypeInfo on generic templates3
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…
- FPC 3.2fixes UTF8Decode strange place4
rtl/inc/ustrings.inc function UTF8ToUnicode(Dest: PUnicodeChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt; a) it has "If (PreChar13) and…
- Lazarus complains that it cannot find a dependency, why?7
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…
- Is lazarus list down?2
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…
- New package to evaluate Pascal-expressions2
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…
- Enum range check error6
Is this a bug in generics with default()? ===================== type TEnum = (Unused = '.'); generic TSomething<T> = class function Get: T; end; TEnumeratedSomething =…
- netdb, DNS and TCP4
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…
- Adding file to string to the RTL29
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…
- Are record fields zeroed on declaration of a record?10
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:…
- uses in '' relative paths5
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…
- Precedence of compiler switches/directives1
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…
- Merging units4
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…
- Re: Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets0
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…
- Dynamic Arrays in Procedures5
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…
- Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets1
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…
- Converting date formats6
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.…
- TOML parser0
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…
- TFPGMapObject duplicate errors5
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;…
- Cross platform question about lpi file content6
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…
