fpc-pascal · 2019-11
- FCL-DB Classes Implementation.6
Are there plans to implement TArrayField, TADTField, TReferenceField, TDatasetField classes in fcl-db package? Thank you. Regards. Ioulianos Kakoulidis.
- Two possible generics bugs14
Testing on 3.3.1. Are these both bugs? I wanted to ask first before filing a report. {$mode objfpc} program test; uses FGL; // No Error specializing TFPGList in…
- Static linking to C library on Windows1
Moving on to Windows now and more basic problems. I've built from Python sources again but I'm not sure about static libraries on Windows. There is a .dll which is a…
- Static linking to C library on Linux7
I'm trying to link to a static library (built from Python sources) in Pascal and having troubles on Linux. On Mac where I have experience I successfully link and every…
- Variant part in objects?1
Is there a reason that objects don't support variant sections like with records? Maybe they mess with the VMT table when virtual methods are added? I just posted my…
- Pre-allocated TFPGList or similar5
I need a pre-grown list which I can put (not insert!) items into at indexes without getting "List index out of bounds" errors. For example I want to start with a list…
- Strange experience with TJsonConfig.Clear2
I experienced some strange behaviour with TJSONConfig.Clear. I'm using fpc 3.0.4 32-bit on Win10-64. (While I do have fpc trunk as well, the program is a Lazaurs GUI…
- How to translate C macros which use stringification?1
I made a simple example to demonstrate the problem: #include <iostream> using namespace std; #define MACRO1(x) \ cout << #x << "(" << (x) << ")"; \
- Writing to a drive which may be spun down9
Running Ubuntu 18 LTS, I have a console-mode number-cruncher which writes occasional output files. It works just fine if the output is directed to a drive which is…
- get_caller_frame6
I came across get_caller_frame in some unrelated code and I was just curious about this so I wanted to ask. What does get_caller_frame return exactly? Is this a pointer…
- cvar external symbol name2
Do cvars not allow external symbol names like functions do? With function I can declare a name but for cvar I'm getting an error. PyBaseString_Type:PPyTypeObject; cvar;…
- DirectoryExists of FreeBSD 12- Java solution0
https://github.com/jnr/jnr-posix/issues/126 these guys had found the reason of broken Java code on freebsd 12: they now detect ABI version and use different struct on…
- DirectoryExists on FreeBSD 12 problem0
freebsd src is https://github.com/freebsd/freebsd/blob/master/sys/sys/stat.h it has 2 defines for "stat": usual struct stat { dev_t st_dev; …
- Add API to official documentation search18
Could FPC make an API for the official documentation search at https://www.freepascal.org/docsearch/docsearch.var so we could make calls like:…
- Generics in Objective-C mode bug?2
Is this a bug I should report? Knowing what I do about generics now I think the type check needs to be suspended until the type is actually specialized. {$mode objfpc}…
- Generic type conflicts25
I've wanted to make a generic version of a vector for a while but I always give up because it seems not very possible. It's probably not even a great idea because many…
- Generic operator overload problem2
Is this a bug or did I do something wrong? The minus operator overload seems to be getting confused and I get a "Can't determine which overloaded function to call" error…
- TStringList.SetCommaText needs refactor1
It's obvious this needs to use SetDelimetedText with other params (2nd 3rd) Procedure TStrings.SetCommaText(const Value: string); begin CheckSpecialChars; …
- StringList micro optimization1
Procedure TStrings.SetDelimitedText(const AValue: string); has about 16 calls to Length(AValue), so make a variable NLen to speed up it. Alexey
- TEventObject.Create site help1
https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.create.html Create creates a new event object with unique name AName. The object will be created…
- TEventObject.ManualReset help page0
https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.manualreset.html text is poor, even the text in .Create (about ManualReset) is more detailed, so…
- FPC cannot understand 1-char string as PChar1
FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because fpc sees 'x', 'y' wrong: Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}', I must change it…
- FPC RGB+W LEDs4
I'm thinking about making a controller for SK6812 Individually addressable RGB+W Led strips, perhaps something I can run on a Raspberry Pi. I'm curious if anyone has…
- Lazarus Release 2.0.60
The Lazarus team is glad to announce the release of Lazarus 2.0.6. This release was built with FPC 3.0.4. The previous release Lazarus 2.0.4 was built with FPC 3.0.4 as…
- Incorrect IDE Messages error line1
Compile Project, Mode: linux x64 qt5, Target: builds/linux-x64-qt5/cudatext: Exit code 1, Errors: 3 Error: /home/user/lazarus/lcl/units/x86_64-linux/qt5/qtwidgets.o: In…
