fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Undocumented SetLength functionality4
Hi All. I just discovered that SetLength(Var S: Array; NewLength: Integer) has an undocumented (appenrently unlimited number of) overloaded functions. Any multi…
- Currency and Int64 casting6
consider following program: var c: currency; begin c := 1; writeln(c,' ',Int64(c)); readln; end. FPC 3.0.4 On Win32/x86 I get: 1, 1000 (what I am expecting) On…
- pas2js Webgl unit committed49
See subject. Rev 83 in pas2js subversion. I have no experience with webgl, so if someone could provide several examples which I can include in the demo folder of pas2js,…
- Copy dynamic array12
Hi List. This i a real newbie question: I hardly use dynamic array, so I don't know if there is a simpler method to copying a dynamic interger array than the straigh…
- FPC on Android tablets: ARM, x86_645
Has anybody come across https://wiki.termux.com/wiki/Main_Page which I've seen mentioned elsewhere? It's supposedly a Linux environment into which one can install…
- testing if a float has a fractional part7
after all these discussions about the frac function, what is the best way to test if there is a fractional part? That is the most common thing I use frac for I have…
- fpWeb: How can I use heaptrc in standalone mode?15
I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. I would like to see the heaptrc log in the end, as we can do in normal desktop applications.…
- FPC on gaming consoles: XBox One, PlayStation 4, Nintendo Switch8
I am wondering about the possibility to port Castle Game Engine to modern gaming consoles. Summary (TL;DR): - Is it possible to use FPC to compile programs/libraries for…
- Feature announcement: default namespaces29
Hello together! I'm pleased to announce the implementation of a new feature: default namespaces. As you may know FPC supports the use of dots/points/periods (".") inside…
- detecting recursive loops2
I'm having an issue with one of my programs that I suspect is being caused by a recursive loop... in simplified form... something like this: Procedure Proc1; Begin Proc2;
- Cross compiling: Win 32 to 641
I have a script for a long time that I use to compile FPC from sources. Today I'm configuring a new machine and I would like to use this script to configure FPC and…
- Re: working with lldb1
Den 2018-05-05 kl. 12:00, skrev Mr Bee : In my experience, AnsiStrings will print with no problems. For example, they print nicely with a command like "fr v" as well as…
- working with lldb0
Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some…
- Prorammatically sending file using HTTP POST?15
I have written a Lazarus/FPC program to configure an IoT device via a tcp server I have implemented on the device. It all works well for setting the parameters etc. Now…
- howto print hires-graphics in windows?0
I want to draw simple line graphics both on screen and printer (full page, with ~300dpi). What is the easiest way to achieve this in FreePascal (not Lazarus)? Maybe a…
- Next language feature for pas2js...40
Now that interface support has been added to the list of implemented language features of pas2js, we're looking to get feedback on what best to tackle next. This time,…
- Next language feature for pas2js...1
I found it surprisingly easy to import undefined JavaScript functions working from examples in the interfaces. I believe web.pas was particularly useful. I also made…
- Locale question0
I have a text file, containing '£' characters, that file -bi reports as text/plain; charset=utf-8 When I try to write a simple pascal program to edit this file using…
- Stack alias for ARC like memory management?39
I had another idea and I was just curious what anyone thought about it. Between C++ where classes can either be on the stack or heap and full ARC like in Swift/Java FPC…
- Blowfish encryption: What I´m doing wrong?2
Hello guys I´ve a single code to encrypt/decrypt strings using Blowfish. function TBlowFishCripto.Encrypt(const Value: string): string; var en: TBlowFishEncryptStream;…
- Multiple active class helpers at same time17
I am sure that this was already discussed, but I can not find any conclusion. Is planned support for multiple class(objet, record) helpers in a way, that all class…
- Read comments via fcl-passrc5
while working with fcl-passrc I search for a possibility to get the comments of a source file in the parsed tree. I found TPasTreeContainer.NeedComments but it does…
- pointerful4
Is this a bug or a feature: type Pint = ^int; int = PInt; ? Mattias
- Where to download OpenSSL (for windows 64 bit) that is used by fphttpclient2
According to http://wiki.lazarus.freepascal.org/fphttpclient, I need the openssl library if I want to use fphttpclient for https://www.yahoo.com/ From the wiki, it went…
- Using constants instead of comments6
I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed. I'm curious if doing something like Const…
- compile time init'ing records8
It’s a real pain setting default values for records in Pascal at compile time. Every other language seems to get this right but it’s a constant issue in Pascal. The…
- The unfortunate deprecation of GetTickCount20
GetTickCount has been deprecated in favor of GetTickCount64, which gives a qword result and so it "solves" the wrap-arount to 0 of the tick after 49.7 days, so one…
- Proposal for new Free Pascal logo29
These days, most modern programming languages have its own logo. The logo becomes a "brand", a unique visual identity for the language. It also acts as a "trademark", a…
- 0030208: "not" doesn't work properly on bitpacked booleans3
I was going to report a bug but I see it's already fixed https://bugs.freepascal.org/view.php?id=30208 however it's still there in 3.0.4, released a year and a half…
- Inline scoped enums5
How can this code {$scopedenums on} type Bar = set of (A, B, C); refer to A, B, C?
