fpc-pascal · 2018-12
- inlining functions depending on implementation only functions17
after updating from fpc 3.1 to fpc 3.3, I am getting a lot of "function was not inlined" warnings, e.g. when an inline function depends on a function not declared in the…
- SetLength warnings - request22
even if there's closed issue https://bugs.freepascal.org/view.php?id=34169 I would like to ask if it can be reconsidered. The subject is that SetLength now gives…
- Fixes 3.2: make all fails3
OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10) Installed fpc 3.0.4 form rpm. (b.t.w. when clicking on the link for…
- Rest in peace Martin Schreiber13
Today I became aware of very sad news. Martin Schreiber, author of the MSEide+MSEgui project, has unexpected succumbed of cardiac arrest on 29 November 2018. He was an…
- Default properties wiki1
I decided to make a wiki going over all the details of default properties which I’ve covered so far, including various usage examples. There’s some questionable…
- Candidate for crowd-funding17
Hi all I decided to start a separate thread for asking about potential candidate for crowd-funding. My personal wish-list is: - support for array calculations /…
- pas2js: Compiler options as Hints in SRC files1
Hi All! I want to use modules/functions/classes (generated from Pas sources by writed manually. In this case i can have some modules/functions/classes not used from other
- TThread.FreeOnTerminate20
Is there a way to use FreeOnTerminate other that setting it in the constructor (or before the thread starts / or in the rather complex manner below)? The doc does not…
- Assign int64 to int32 shows no warnings at compilation time5
Is there a FPC command line parameter to enable warnings or errors for the following situation at compile time? All logic tells me that detecting this an runtime only is…
- How do I take the float type of a field from a record?2
Hi. Please consider the following code: uses TypInfo; type TTestRecord = record Member1: LongInt; Member2: Double; Member3: string; Member4: Extended; end; var F:…
- Ho to convert a special format of datetime?3
I'd like to convert this date "2017-01-11T17:47:22.2912317-02:00" to TDatetime. It seems probably it exists in Freepascal, but I don't know. So, I ask, how to suply a…
- FPC-based http/s server4
Is there any open source, maintained and updated HTTP server using FPC out there? I need a lightweight HTTP server written in FPC that supports Linux/Unix, F/CGI app,…
- Generic (TFPGObjectList) EInvalidCast4
why this code gives EInvalidCast at runtime (but compiles well):w program Project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} …
- precedence "is" and "and"10
According to the docs, the "is" operator is fourth level, the "and" is second level, so the "and" must be computed before the "is". But it seems fpc treats "is" and…
- Implicit generic specializations13
Since I had was already working on generics I wanted to see if I could implement the inferred specializations like is available in Delphi. The current syntax is too…
- Proud to announce..1
Hello ! If anyone still doubted that Object Pascal is the best programming language, running on the most platforms: It is with considerable pride that I can announce a…
- Can't determine which overloaded function to call5
this code compiles for target Win32 but does not compile for Win64/x86-64. Why? Is there workaround? (Error: Can't determine which overloaded function to call) Thank you…
- Object questions3
Some questions about old-style objects. 1) How can you check if self is assigned? self refers to the struct itself but if the object was allocated on the stack then how…
- Generics question4
{ TFoo } generic TFoo<T> = class procedure Bar; end; { TFoo } procedure TFoo.Bar; procedure localproc; begin end; begin end; This will not compile (fpc 3.0.4):…
- How to get ANSI code command return value?2
I'm playing around with ANSI code (ESC sequence) on the console. Sending an escape command is trivial such as changing text's color and background. However, getting a…
- Building trunk29
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…
