fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Syntax to select constant or variable with function call9
I have several Similar arrays as follows for translating various color schemes into RGB565, I currently have 5 arrays but may add more. ACI256: Array[0..255] of…
- Booleans vs sets4
I have a class that is filling up with booleans. Would it be more efficient to store these as a “set of”? I have 10 bools which is getting up there. Ryan Joseph
- PortAudio writing audio files Windows and MacOS0
I noticed freepascal has some PortAudio related code (AFAICT fredvs has contributed some units here too).. Can portaudio, the cross platform API, be used on macOS? Does…
- Comparison operator for generics6
This is a common pattern I’m finding when working with generics in FPC. In the example below there is an equals comparison that needs to be checked but for some types…
- Inclocked/declocked7
I was time profiling some code and saw these 2 functions taking up large amounts of time. They’re coming from dynamic arrays and SetLength I believe but I was curious…
- Container class for key-value pairs4
since I'm programming Pascal only on occasion I'd like to know: Which container class ist the easiest to use for key-value pairs? The goal is to store a configuration…
- Using Serial in a TCP/RS232 gateway, how to set buffer sizes?23
I have created a simple application which relays data from an application I am debugging in Windows7 to/from a remotely located embedded data system. I use the built-in…
- Where and Why is there a memory leak?19
Playing with this small sample application to answer another question in this mailing list, I noticed the sample application has a memory leak. For the life of me I…
- When to use and not use @?1
Coming from Delphi I am a bit confused about the syntax when dealing with procedure arguments specified as var... In Delphi this is all taken care of by the compiler and…
- Mantis doesn't contain a 3.0.4 product version9
How are we supposed to report bugs against 3.0.4-rc1 if there is no such Product Version defined in Mantis? Graeme fpGUI Toolkit - a cross-platform GUI toolkit using…
- implements13
I think I asked this some years ago but I came across it again I just don’t get what the point of this is. There is an “implements” property but it seems like yet…
- Free Pascal 3.0.4-rc1 released!7
We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…
- TP compatibility: procedural type15
Hello, all. According to Borland's official language guide to To be used as procedural values, procedures and functions must be declared with a 'far' directive or…
- Agg Pas Arcs8
I'm having an issue with drawing Arcs with AggPas, and I can't quite put my finger on it... What's happening is that small arc segments are just not being drawn...…
- H2pas tool vs others, C header translation39
Forgive me, I have forgotten, this may have been discussed before.. Is h2pas the latest tool to convert C headers to pas files? Is there a competing tool that does more,…
- HTTPS with fphttpclient1
I'd like to make a request to a HTTPS address with TfpHTTPClient but am getting an unknown protocol error. I'm running fpc 2.6.4 on Rasbian 8 (Jessie) on a Pi 3. Here's…
- FPHTTPClient OpenSSL implementation2
For years I'm working with synapse (Ararat) with OpenSSL and there is same openssl.pas lib. So problem is with: in InitSSLInterface: if assigned(_RandScreen)…
- Freepascal Floating Point Issue37
I am having an issue with a simple floating point application. I am setting a variable to a specific value and immediately after I set it, it is not exactly what I set…
- sending new parameters to existing instance4
I have a windows console application I wrote with Freepascal. I can send it a command line parameter for a file to use have it working so if I just double click on…
- ExtractRelativePath() not always returning expected result4
I’m trying to figure out ExtractRelativePath() and I’ve run the sample program found here: https://www.freepascal.org/docs-html/rtl/sysutils/extractrelativepath.html…
- Inline ASM code3
I need store result of floating point calculation (in my example arctan()) in memory pointed by some variable. See this code: var a: single; pa: PSingle; asm fild dy…
- Check In Interface Type Helpers21
I just wanted to point out that revision 37023 Sven added type helper support for interfaces. Good job and thank you Sven!
- StringOfChar for Unicode/Widestring1
Do we have a StringOfChar function for UnicodeString/WideString in FreePascal? I could not find it in 3.0.4RC1 (which may tell you more about me that fpc). Bart
- fpReport released3
A long time wait. But it finally made it: fpreport has been committed to FPC SVN: packages/fcl-report. It should compile on windows, linux, freebsd and darwin. Features…
- TStringHelper missing3
I’m trying to split a string by a delimiter and see there is a type helper called TStringHelper (https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.html).…
- Super Large Integer Math Calculations10
For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then…
- Serial communications: synaser vs FPC's serial unit10
If somebody with more experience (than me) with the Synaser and FPC serial.pp units could comment, that would be much appreciated. For a new cross-platform project where…
- Defining sonames?33
MSEgui uses xlib by the units in packages/x11. The linker searches for libX11.so which is not installed on most systems by default so one has to install the libx11 devel…
- Pascal support in the Kattis educational site3
A bit of news which I think has some interest here: "Kattis" (open.kattis.com) is a site where students can make programming exercises. This is quite important IMHO;…
- Proposed tidy-up of the FPC Manual section on Character Types and the FPC Wiki3
There has been some heated discussion on the Lazarus lists on the subject to character encodings etc. This has exposed several issues with the FPC Manual that I wanted…
