fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Linux, keypressed, readkey6
Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt?
- unit crt linux CR LF1
When using the crt unit the CR LF is not working properly as I understand. Is it possible to change this behaviour? So that the CR LF is working? For examlpe when…
- file identification and metadata retrieval0
currently I'm searching for a library for use with fpc to handle arbitrary files. My goal is to check if file extension corresponds with content (e.g. a .gif named .png)…
- multi-platform and filesystem case sensitivity1
what is the recommended way of handling filesystem case sensitivity when users can provide a filename mask for use in processing? i'm not sure what the best or…
- Which gdb version to use?8
Since some versions gdb crashes with FPC programs if the "print" command is called with a query of pointer to not existing record fields for example, it triggers an…
- Size of a partition15
How to get the total size of an unmounted partition in Linux? For example "/dev/sdb1"
- When loading a TComponent from file, method Loaded fired but method Loading not.2
Could you please explain this problem? I think that Loading method should be called by streaming system.
- Generic: record type restriction1
I need to restrict a generic type to accept specialization only of enum types. In Delphi, I can do that using "T: record", but, when I try to use it in FPC (even using…
- else and otherwise in a case statement3
I've been doing a bulk replace of 'case..else' to 'case..otherwise' to eliminate possible ambiguities that have bitten me in the past, and have noticed something…
- compare currency and double4
I have the following code: var val: Currency; res: Double; begin val := 2345.67; res := 1e300; if val >= res then WriteLn('val >=res') else WriteLn('val < res'); end;…
- AnsiStrLComp AnsiStrLIComp4
According to the docs AnsiStrLComp treats #0 as normal characters, which sounds as if it does not stop at #0. Does it stop at #0 or does it not?…
- findfirst wildcards...24
how do you process for multiple filemasks? eg: find ts??????.sel and t???.sel for the same processing run ====== snip filemask.pas ====== Program Filemasks; Uses…
- node.js-like system using pascal2
Is there anyone out there making node.js-like system using FreePascal? Thank you. -Bee-
- red( clGrayText)4
using -Cr (Range Check) option, red( clGrayText) as example, throw an exception! how should I program "red" (or green, blue and may be some others) functions to avoid…
- Helper type and class fields2
"A helper type may not declare instance data, but class fields are allowed." ( http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi) ). In…
- -CR option and simplehtmltreeparser0
compiling simplehtmltreeparser with -CR option I get: F:lazaruscomponentsinternettoolsdatasimplehtmltreeparser.pas(591,13) Error: Incompatible type for arg no. 2: Got…
- SameValue and +-Infinity0
today I discovered that SameValue(infinity, neginfinity) returns TRUE. Why? It should be FALSE. Or not? Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64…
- mORMot1
Discussion elsewhere has mentioned mORMot as a development framework. It claims to work with both Delphi and FPC: is anybody actively using it "in anger", so that I can…
- FPC macros1
for several Pascal headers for C libraries it would be very nice, when macros defined in the interface section would be globally avaible. E.g. in Assimp there are macros…
- Type used to specialize a generic4
Hello list, is there a safe way to know the PTypeInfo, or at least the string literal of the type(s) used to specialize a generic? Eg: TBarList = specialize…
- Default value resourcestring0
How can I get the defaultvalue of a single resourcestring? Mattias
- MSEide+MSEgui version 3.60
MSEide+MSEgui 3.6 has been released: https://sourceforge.net/projects/mseide-msegui/ New target: arm-linux (Raspberry Pi). MSEide runs amazingly fast on the Raspberry Pi.
- Cross compiler for Raspberry Pi4
I try to build a fixes_2_6 cross compiler i386-linux -> arm-linux-eabihf. " make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=$CROSSBINDIR OPT=-dFPC_ARMHF…
- TurboPower FlashFiler for Free Pascal18
Yeah, a catchy title! ;-) I want to know if anybody here has ever used FlashFiler in Delphi. Was it a good product, and do you think it would be worth the effort porting
- Linker problems FPC 2.6.43
I am just getting back into Pascal after a number of years -- I installed 2.6.4 from the tarball. To try it out I copied the browser demo (browserall.pp) into my home…
- date formating dificulty10
I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 .... fpc 2.6.2 and got…
- Mixing PIC non-PIC code/variables when linking a shared library8
Why would a global variable cause an issue when linking a shared library (specifically 64-bit linux)? The more detailed description is here:…
- Is it possible to specialize a generic class more than once, with different types, in the same unit?4
I just started investigating the generics classes in fcl-stl for a program that I'm writing. I haven't written anything using generics in Free Pascal before, so this is…
- Generic specialization using $mode objfpc8
How to use this code below in mode objfpc?: TMyGeneric<T> = class(TObject) private FValue: T; public property Value: T read FValue write FValue; end; ... var…
- Generics: constructor restriction fail4
Following this article: http://alex.ciobanu.org/?p=51 The compiler does not check the constructor restriction. Try this test: {$mode delphi} TTest = class private //…
