fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Dos unit for Windows2
I have some problem with a file archiver which uses the Dos unit under Windows, I suspect the flaw resides in GetFAttr function. Looking in the source for Win RTL…
- GDeque unit crash, FPC trunk2
I see stange crash in gdeque unit if I use unit from FPC trunk https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gdeque.pp crash in…
- AVR GetMem/AllocMem4
AFAIU dynamic allocation memory does not exist for AVR platform ( tried to use AllocMem, GetMem and the mcu restart it's self. ) . Is there any other way to…
- Re: fpc-pascal Digest, Vol 175, Issue 310
I am not sure that I can help, but this is an interesting topic and I am curious if you find a solution. I can only assume that maybe you did not link to gcc and c…
- Conversion of buffer of UnicodeChars to AnsiString0
is there smarter way how to convert buffer of UnicodeChars to AnsiString taking into account codepage conversion as: as := String(UnicodeCharLenToString(buffer, buflen…
- type helper default property2
For example: type THelper = type helper for string function GetItems(Index: word): word; property Items[Index: word]: word read GetItems; default; end; Delphi forbids…
- type helper constructor1
A type helper for a string can add a constructor. But how it can be used differs between FPC and Delphi. For example: {$modeswitch typehelpers} type THelper = type…
- 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…
- type helpers5
A type helper can change Self. I wondered how FPC 3.3.1 handles properties and got some unexpected results. Is this by design, a bug, or not-yet-implemented? {$mode…
- 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…
- Multi-scope helpers draft4
I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow multiple helpers per scope. I have no idea why Delphi thinks only one helper should be…
- Constants in generics95
I implemented a first draft of constants (integers) in generics. My reason was specifically that I wanted a way to add methods to static arrays and generic records is…
- when will the size of an enumerated type change?1
Type TComparisonMode = (cmThisOnly, cmThisAndThat, cmThisOrThat); TMyClass = class public var ComparisonMode : TComparisonMode; end; I discovered that, the…
- Get "disk" ID3
I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. On Windows I can retreive the…
- Small typo in User_Changes_Trunk ?2
reading http://wiki.freepascal.org/User_Changes_Trunk#Modeswitch_TypeHelpers_in_Delphi_modes_enables_type_helper-syntax there is: Remedy: The only problems arise if one…
- Interface bug or some new feature7
Hi all I've been using 3.1.1 compiler for a long time and now I am trying to upgrade to 3.3.1 from trunk. However, I am stuck with some new behavior when using classes +…
- "crtbegin.o" not found6
What is that? I'm seeing that compiler warning in my fpGUI projects too? Since I upgraded to 3.0.4 using Linux 64-bit. It was not there in FPC 2.6.4. Below is a sample…
- 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…
