fpc-pascal · 2016-02
- Primitive Record Wrappers38
In some situations, would be very interesting to determine whether the value of a primitive variable is initialized or not. For example, fields in database records can…
- Codepage + class helper raises "Error identifier idents no member ..."11
Consider the following code: === code === program project1; {$mode objfpc}{$H+} *//{$codepage utf8}* uses Classes; type TFoo = class helper for TStream public procedure…
- Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)39
Sorry, my previous example was not complete. Here is a problem detected when compiling UniDAC 6.2.8. Taken from real code in VirtualTable.pas program Project1; {$MODE…
- Happy tickets benchmark58
Here is my little brute-force test for FPC, C and C# compilers. http://arbinada.com/main/en/node/1532 The results are not so good with FPC but I cannot use Delphi to…
- Wiki (image) uploading temporarily disabled1
The tech support scammers discovered that mediawiki's antispam regex doesn't get applied to image descriptions, so they're now attacking us that way. I hope to find a…
- Crash using library.1
Hello. I use a audio library (libfaad.so) for reading *.m4a audio files. But, after 2 loading-run, the program crash. Here is the result of the debugger: Program…
- Possible bug in Numeric test5
Not sure if this is considered a bug or not :) I have found this function returns TRUE if passed 'E1/E2/etc' I am guessing it is seeing the 'E' as exponent function…
- Forcibly terminating a thread2
I've got a program here which, under some conditions of testing, ends up with a thread stuck inside a system call (detail: a mainframe emulator, which is still trying to…
- Tar messages when running the installscript from fpc-3.0.0.i386-linux.tar.5
I installed fpc 3.0 on my "new" Debian system, running the script form fpc-3.0.0.i386-linux.tar. This shell script will attempt to install the Free Pascal Compiler…
- Official/recommended citations for scientific papers0
this is a cross-post to FPC-Pascal and Lazarus mailing lists. I'm finishing my PhD thesis and because I was implementing some partial differential equation solvers and…
- Include directive for current procedure/method/function name?3
I vaguely remember somebody requesting something like this, but not sure if it was every implemented in FPC 2.6.4 or FPC 3.0. A macro that one can use in code to return…
- Building FPC for Windows X643
I'm having some issues where when I try to build fpc for windows x64 from win32 it seems to have a few issues I build my fpc from the trunk release using this command…
- Problem with StrMove() in a unit compilable in FPC and Delphi5
I want to use the StrMove() function in a unit compilable in Delphi (XE) and FPC, but I don't know why it doesn't work on FPC. Consider the following code: {$IFDEF FPC}…
- Wiki etc.- where?5
http://www.freepascal.org/ points to http://wiki.freepascal.org/ for the wiki, which is giving me a permanent 403 "Forbidden". Anybody know what's going on? Mark Morgan…
- MSEide+MSEgui 4.20
MSEide+MSEgui 4.2 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.2/ There are also new versions of MSEgit, MSEspice and MSErun:…
- Compiler Mode?9
On another forum a Free Pascal user opined that {$MODE DELPHI} is wrong and should not be used other than for people or companies trying to convert Delphi code to Free…
- ARM CMSIS support13
looking at the embedded source code there has been done a lot of work. I'm interested in trying fpc on Cortex-M3 and M4, mostly from ST. While trying to get an overview…
- Building Android cross compiler error2
I’ve downloaded FPC 3.0.0 and updated the sources from SVN then downloaded the Android NDK (Mac OS X 64-bit was the only option for Mac). The script seems to work but…
- Bug in FPC 3.0?4
UniDAC doesn't compile with Lazarus 1.6/FPC 3.0. The case may be reproduced on following example. program Project1; {$MODE DELPHI} uses SysUtils, Classes, DB; var F:…
- Android porting ideas9
I’m going to attempt to port a game to Android but I have some questions about potential problems. Now at least I think building a library and loading using the JNI…
- Delphi compiler team left Embarcadero/Idera10
Looks like the last one senior compiler guy has gone - Allen Bauer (like Eli Boling before). He is starting a new position at Google:…
- Variable Initialization Questions7
After googled and searching in the documentation, http://free-pascal-general.1045716.n5.nabble.com/does-Advanced-Record-constructor-automatically-zero-all-the-memory-spac…
- Wiki upgraded4
The wiki has been upgraded to MediaWiki 1.23.13 LTS. I've also replaced our custom captcha with Google's ReCaptcha, as we've been hit very hard by spammers the last…
- [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.19
I have a friend here in Brazil that added the `notify` support to the FGL lists, however he sented it to this Github PR [1]. I'm contacting him to explain how to send it…
- Lazarus Release 1.69
The Lazarus team is glad to announce the release of Lazarus 1.6. This release was built with FPC 3.0.0. The previous release Lazarus 1.4.4 was built with FPC 2.6.4. Here…
- {$J} default setting for today4
Hi, I read this: http://www.freepascal.org/docs-html/ref/refse10.html "Support for assigning values to typed constants is controlled by the {$J} directive: it can be…
- How to pass an array of bytes directly in a TBytes param?4
Consider the following procedure: procedure test(b: TBytes); begin end; The common way to pass an array of bytes in this procedure is declaring and initializing a TBytes…
- Re: fpc-pascal Digest, Vol 140, Issue 690
Exactly, the variance too. Many things matter. My example shows only that AVG estimation is better than MIN in the simple technical test with 10 runs because of average…
- [OT] News-Flash: fpc-other is now on Gmane !0
Yay http://dir.gmane.org/gmane.comp.compilers.free-pascal.social However has not yet hit the gmane nntp hierarchy (at the time of writing this post); The first post it…
- Re: Happy tickets benchmark2
Not at all, any series against MIN delivers the best value for MIN(result) not for runtime! Ex. Prog 1 Run 1: 130 = 100 + 30 Run 2: 160 = 100 + 60 Run 3: 170 = 100 + 70…
- internal error with bitpacked record in i386 with O31
(I know this is more suited for fpc-devel, but every email I sent to that list gets bounced back to me. My apologies.) I logged this mantis issue:…
- Re: Happy tickets benchmark4
Sounds like the real-life programs don't use inner loops or don't solve NP-complete problems :) For info, my real-life examples are the application server and the DSL…
- Please someone explain this to me52
I really don't like the include files with Lazarus and Free Pascal for the following reason: How the **** am I supposed to know which file is including an include file?…
- Re: Happy tickets benchmark1
It's a wrong choice. As we can see and reproduce, at least C# or other Pascal-like environments (Oxygene) are significantly faster.…
- Re: Happy tickets benchmark2
As I said, the goal of the test is to compare the compilers, not the programmer's intelligence. You should remove inner loop from C and C# code to get a meaningful…
- Assign() vs AssignTo()9
In TPersistent, we have two virtual methods. Assign() which calls AssignTo(). 1) Why are they both virtual? It seems like Assign() is what I call a template method,…
- Nice const array messages. Thanks!0
I just noticed this really nice compiler feature. I don't know when it as added but it's really helpful. When defining const array like below the compiler will tell you…
- Recovering info from a backtrace with an external debug file6
I compiled a program with -Xg (generating an external debug info file *.dbg) And deployed the executable without the debug info When an exception occurs i get a…
- EDatabaseError on SELECT9
I'm posting here because this seams to be an issue with using sqldb, my SQL seams to be ok. I create a table and add a row to it, but when trying to read that same row…
- Format and Cardinal3
Why does this trigger an range check exception: var lNum: Cardinal; lStr: string; begin lNum := High(Cardinal); lStr := Format('Num=%u', [lNum]); Format doesn't support…
- Re: FPC and SSH (Mark Morgan Lloyd)0
Here's a link to the interface files I use for acting as an ssh client via libssh2. I've included my libcurl headers as well. There are two versions of each, one for…
- FPC and SSH2
I've come across http://forum.lazarus.freepascal.org/index.php?topic=15935.0 which suggests that there are some interface files to allow an FPC program to act as a…
- IfThen() intrinsic removed43
Hello together! The IfThen() intrinsic has been removed again. There will be *no* replacement in the foreseeable future. This is not up for discussion. Sven
- Ararat Synapse UDP Rx Speed (Mbps)4
Does anyone have any benchmark speed tests using Synapse to receive UDP data ? (ie Mbps transfer). Thanks View this message in context:…
- Re: if-then-else expression2
I see, and it is what I said many times: you wrap the if-statement into pseudo-function. This make no sense and will be source of programmer's errors. The simplest case…
- Re: if-then-else expression3
Holy sh*t, ça continue ! :) Even if evaluation order will be assured and well documented, it doesn't make sense! Example : x := iif(Obj = nil, 0, Obj.Value); // Seems…
- The IfThen() thread is now closed1
I think that everyone has had ample opportunities to exchange their views on this topic, so it's now closed on this list. If you want to discuss it further, you can do…
- Re: if-then-else expression16
And I just noticed that I sent this to fpc-devel instead of fpc-pascal... *sigh* So here it is again for fpc-pascal as well. Sven
- Re: New feature: IfThen() intrinsic11
Why make the things complex? Why create another "special case"? Look at the "iif" as an statement and the things will be simple. Disagreed. The principal difference…
- Error compiling FPC trunk under Linux5
Hi! I'm trying to build FPC on linux x64, using makepack script, but I have Internal error 2007020810. Bellow the script output: /usr/bin/ppcx64 -Ur -Ur -Xs -O2 -n…
