Re: [fpc-pascal] What to do to get new users

2024-10-17 Thread Ralf Quint via fpc-pascal
On 10/17/2024 4:27 AM, Rainer Stratmann via fpc-pascal wrote: Am Donnerstag, 17. Oktober 2024, 03:24:07 CEST schrieb Ralf Quint via fpc- pascal: Sorry, but do you really suggest that Lazarus should intentionally adjust itself to the shortcomings of other IDEs? Being able to move windows around

Re: [fpc-pascal] What to do to get new users

2024-10-16 Thread Ralf Quint via fpc-pascal
On 10/16/2024 2:49 PM, James Richters via fpc-pascal wrote: >> By and large, FPC (and Lazarus) is installed rather quickly. The only thing I wish for the installation of FPC is that all the help files were included and installed by default. I am always annoyed by being required to go get the

Re: [fpc-pascal] What to do to get new users

2024-10-16 Thread Ralf Quint via fpc-pascal
On 10/16/2024 2:38 PM, Stefan-Iulian Alecu via fpc-pascal wrote: Lazarus does not look complicated. It has it own distinctive look & feel. User should be able to completely detach windows from from main so it would be possible to move them to different monitor, virtual desktop & freely move

Re: [fpc-pascal] What to do to get new users

2024-10-16 Thread Ralf Quint via fpc-pascal
Sorry, but there has been so much nonsense in this thread, I just had to add my 2c as well. On 10/15/2024 4:07 PM, Rainer Stratmann via fpc-pascal wrote: At the Lazarus Congress in Cologne in October 2024, it ended up being very interesting. An important question came up. Why are no new users c

Re: [fpc-pascal] "Unexpected end of file" when having an open comment after the final "end."

2024-02-09 Thread Ralf Quint via fpc-pascal
On 2/8/2024 11:01 AM, Martin Wynne via fpc-pascal wrote: Hi Thomas, The error is not the file content after "end.". The error is not having the expected "end;" after "begin". This works ok: _ program test; begin end; end. abc 123 _ Martin.

Re: [fpc-pascal] Floating point question

2024-02-04 Thread Ralf Quint via fpc-pascal
On 2/4/2024 12:32 PM, James Richters via fpc-pascal wrote: >> Not specifying in a program, specially in a strict programming language like Pascal, will always result in implementation depending >> variations/assumptions. The problem is, I feel that I DID specify what should be by declaring

Re: [fpc-pascal] Floating point question

2024-02-04 Thread Ralf Quint via fpc-pascal
On 2/4/2024 11:15 AM, James Richters via fpc-pascal wrote: I understand that the result depends on the variables and expressions, The problem with constants used in an expression is that some determination needs to be made because it's not specified. Since it's not specified, then I think it shou

Re: [fpc-pascal] Function to create a record ?

2023-06-01 Thread Ralf Quint via fpc-pascal
On 6/1/2023 5:36 PM, Steve Litt via fpc-pascal wrote: Hi all, I'm trying to create a function (called newperson()) that creates a new instance of a record. The following compiles with no errors or warnings in FPC, but multiple calls to newperson() produce exactly the same variable, so in the pre

Re: [fpc-pascal] Oberon-0

2023-04-20 Thread Ralf Quint via fpc-pascal
On 4/19/2023 7:46 PM, Adriaan van Os via fpc-pascal wrote: Ralf Quint via fpc-pascal wrote: What does Oberon and Forth have to do with the FreePascal compiler? 😕 1. Niklaus Wirth 2. Strong resemblance between Oberon and Pascal 3. An early version of his book Compiler Construction used

Re: [fpc-pascal] Oberon-0

2023-04-19 Thread Ralf Quint via fpc-pascal
On 4/19/2023 1:06 AM, Markus Greim via fpc-pascal wrote: You are right there are in between many compilers for the Propeller 2 around. My idea would be a to have an Oberon system on the Propeller itself. Developing on the target itself is unbeatable clever. Is started 35 Years ago with the 8051-

Re: [fpc-pascal] Cache-line alignment for records

2023-03-29 Thread Ralf Quint via fpc-pascal
On 3/29/2023 2:38 PM, Ched via fpc-pascal wrote: Hello, Ok for the records for internal calculations. But sometimes, records are used for reading/writing structured files. Does "packed" in "packed array" and "packed record" always forbid the compiler to play with alignments ? If that recor

Re: [fpc-pascal] Converting old pascal written for Pascal/MT+ compiler

2023-03-28 Thread Ralf Quint via fpc-pascal
On 3/28/2023 3:12 AM, Marco van de Voort via fpc-pascal wrote: On 28-3-2023 11:33, Karoly Balogh via fpc-pascal wrote: Probably yes, but there might be an alternative, see below. But as far as I understand, Unit is a Turbo Pascal concept, so any Pascal programming dialect that predates it, p

Re: [fpc-pascal] Converting old pascal written for Pascal/MT+ compiler

2023-03-28 Thread Ralf Quint via fpc-pascal
On 3/27/2023 2:45 AM, Jacob Kroon via fpc-pascal wrote: Hi, I have some old Pascal code that was compiled in a CPM environment using the Pascal/MT+ compiler from Digital Research. I'm trying to get this project to build in a modern environment, for a start using FreePascal. First, is anyone

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-31 Thread Ralf Quint via fpc-pascal
On 12/31/2022 12:37 AM, Steve Litt via fpc-pascal wrote: Anthony Walter via fpc-pascal said on Thu, 29 Dec 2022 07:31:57 -0500 @youngman "I'm a database guy with maybe 30 years experience, I'm new to SQL and oh my god is it an over-complicated monster ..." I'll say this: It certainly doesn't

Re: [fpc-pascal] Program efficiency

2022-11-15 Thread Ralf Quint via fpc-pascal
On 11/9/2022 6:52 AM, James Richters via fpc-pascal wrote: Sounds to me that if the compiler will probably insert temp variables anyway, then I might as well make my own and make it easier to understand later. +1 Trying to write this without intermediate variables would definitely make is

Re: [fpc-pascal] BoolToStr

2022-08-28 Thread Ralf Quint via fpc-pascal
On 8/28/2022 8:23 AM, James Richters via fpc-pascal wrote: Running "i:\booltostr.exe " -1 0 Why true is -1 instead of 1 is beyond me, but anyway, I would consider this BoolToInt, not BoolToStr,I want the Strings ‘TRUE’ or ‘FALSE’ as indicated in the documentation Very logical in fact. 0 is

Re: [fpc-pascal] string vs char

2021-10-15 Thread Ralf Quint via fpc-pascal
On 10/15/2021 3:16 PM, Ched via fpc-pascal wrote: Well, well, understand. OTOH, declaring a string of length 1 is sort of futile -- it uses two bytes where a plain char declaration takes just one byte. Not so futile as a string can be empty, not a char ! Well, if you don't like it being ca

Re: [fpc-pascal] FreePascal and MySQL 8.0

2021-09-20 Thread Ralf Quint via fpc-pascal
On 9/20/2021 12:39 AM, antlists via fpc-pascal wrote: On 20/09/2021 00:12, Ralf Quint via fpc-pascal wrote: On 9/18/2021 7:33 AM, Terry A. Haimann via fpc-pascal wrote: I just upgraded to a new laptop and see that MariaDB is using MySQL 8.0 . I also see there is no connector in my Free Pascal

Re: [fpc-pascal] FreePascal and MySQL 8.0

2021-09-19 Thread Ralf Quint via fpc-pascal
On 9/18/2021 7:33 AM, Terry A. Haimann via fpc-pascal wrote: I just upgraded to a new laptop and see that MariaDB is using MySQL 8.0 . I also see there is no connector in my Free Pascal install for MySQL 8.0. I do see that there is an open ticket to create a connector. Is there an Alpha or Beta

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Ralf Quint via fpc-pascal
On 8/31/2021 10:40 AM, joseph turco via fpc-pascal wrote: I guess I should just use lazarus and learn the GUI Tools. Using Lazarus doesn't mean you HAVE TO write GUI programs. Just use it as an IDE. And by and large, any book/resource about Object Pascal/Delphi will do just fine to learn the

Re: [fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-11 Thread Ralf Quint via fpc-pascal
On 7/10/2021 10:20 AM, Ryan Joseph via fpc-pascal wrote: I guess that video is totally false or I'm missing something There is no easier way to cheat than using benchmarks... ;-) Ralf -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antiviru

[fpc-pascal] 50 years of Pascal, by the the author himself

2021-05-12 Thread Ralf Quint via fpc-pascal
Thought this was kind of interesting, though it leaves short of mentioning the later Object Pascal evolution and thus Delphi and FreePascal... https://cacm.acm.org/magazines/2021/3/250705-50-years-of-pascal/fulltext Ralf -- This email has been checked for viruses by Avast antivirus softwar

Re: [fpc-pascal] Traits Proposal

2021-02-16 Thread Ralf Quint via fpc-pascal
On 2/16/2021 10:48 AM, Sven Barth via fpc-pascal wrote: Ryan Joseph via fpc-pascal > schrieb am Di., 16. Feb. 2021, 19:21: > > There we have: > > * slower creation of the class, because each implemented interface adds another VMT refer

Re: [fpc-pascal] Value:x:y syntax

2021-02-10 Thread Ralf Quint via fpc-pascal
On 2/9/2021 7:26 AM, Luis Henrique via fpc-pascal wrote: I guess one can call it optional formatting specifiers.  See documentation:  https://www.freepascal.org/docs-html/rtl/system/str.html I think I was lazy and didn't look in the right place, thanks Michael and Christo. This is standard

Re: [fpc-pascal] Selecting Records with a variable

2020-12-20 Thread Ralf Quint via fpc-pascal
On 12/20/2020 7:11 AM, Luca Olivetti via fpc-pascal wrote: Then change your data model. Instead of Axis_record = record   X,Y,Z,A,B,C    : Double; End; use AxisName = (X,Y,Z,A,B,C); Axis_record = array[AxisName] of double; then it's easy to do what you want. procedure DoSomething(var Axis:

Re: [fpc-pascal] basic question on begin, end;

2020-09-23 Thread Ralf Quint via fpc-pascal
On 9/22/2020 5:46 AM, dano none via fpc-pascal wrote: I have a basic shuffle routine. I put being, end statements in the outer loop for clarification. It ended up producing random results. Commenting out the begin, end combination allows the code to run as expected. My code is below, can someone

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Ralf Quint via fpc-pascal
On 3/15/2020 6:55 AM, Ryan Joseph via fpc-pascal wrote: It's 2020 and the mail list is starting to really show its age. I don't get first messages from gmail and my personal web host is whitelisted, messages bounce when I use the wrong account by accident, hard to search the archives, can't po

Re: [fpc-pascal] Add API to official documentation search

2019-11-17 Thread Ralf Quint via fpc-pascal
On 11/17/2019 2:41 PM, Graeme Geldenhuys wrote: On 17/11/2019 10:31 pm, Michael Van Canneyt wrote: Stated purpose was special handling in the Bing search engine. Either way, that's a pie in the face for Embarcadero. :-) They might rather get a chuckle out of it, after all, it is Bing. And as

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Ralf Quint
On 9/24/2019 12:24 AM, Marco van de Voort wrote: Op 2019-09-24 om 03:03 schreef Ralf Quint: systutils, so having documentation that includes the differences between the versions would be helpful. Turbo Pascal (for DOS) didn't have a FindClose function, as "officially", th

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-23 Thread Ralf Quint
On 9/23/2019 3:53 PM, James Richters wrote: I have ported Turbo Pascal code but then use Sysutils instead of DOS, my intention was to convert it to a windows console application that used windows features, and I had no interest in maintaining Turbo Pascal backward compatibility, and the use o

Re: [fpc-pascal] Illegal counter variable?

2019-09-10 Thread Ralf Quint
On 9/10/2019 4:26 PM, wkitt...@windstream.net wrote: On 9/9/19 10:11 AM, James Richters wrote: Pascal doesn't have things like step... hunh??? i don't think that's right but i'm just catching up after several 10+ hours days of $job... i know that i've written code in the past that did use s

Re: [fpc-pascal] Implementation of variant records

2019-07-06 Thread Ralf Quint
On 7/6/2019 12:21 PM, Florian Klaempfl wrote: Am 05.07.2019 um 13:53 schrieb Ralf Quint: Shouldn't a PACKED Record guarantee that values are aligned at the byte level? It does in TP, but the ISO says only that it shall be economised. Well, the ISO is probably what has done most of the d

Re: [fpc-pascal] Implementation of variant records

2019-07-05 Thread Ralf Quint
On 7/5/2019 5:07 AM, Marco van de Voort wrote: Op 2019-07-05 om 13:53 schreef Ralf Quint: IMO, the variants in a variant record should always overlay correctly (like unions in C), so the variant part should start at offset 32 in this case, and this is where all three variants should start

Re: [fpc-pascal] Implementation of variant records

2019-07-05 Thread Ralf Quint
On 7/5/2019 3:27 AM, Marco van de Voort wrote: Op 2019-07-05 om 11:49 schreef Bernd Oppolzer: IMO, the variants in a variant record should always overlay correctly (like unions in C), so the variant part should start at offset 32 in this case, and this is where all three variants should sta

Re: [fpc-pascal] The keyboard unit

2019-05-10 Thread Ralf Quint
On 5/10/2019 4:42 PM, Kevin Lyda wrote: If I remove the uses clause it runs fine. Why is the keyboard unit, which isn't even being used, causing this error? Kevin Well, when I got home a short while ago, I tried that small test program on one of my Linux workstations and it runs just fine...

Re: [fpc-pascal] The keyboard unit

2019-05-10 Thread Ralf Quint
On 5/10/2019 4:42 PM, Kevin Lyda wrote: When I compile and run this small test program ( https://gist.github.com/lyda/2d33a6d91067e9dffb4ed37147b52583 ) the following happens: % fpc test.pas Free Pascal Compiler version 3.0.4+dfsg-22~bpo9+2 [2019/02/22] for x86_64 Copyright (c) 1993-2017 by Flor

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Ralf Quint
On 4/16/2019 1:11 PM, Martin Frb wrote: On 16/04/2019 22:03, Ralf Quint wrote: Schwachfug. (Bollocks for the Anglophiles around here) And for those with American English: B*S* But I really dont see where to put 2nd, let alone a 3rd  50 inch screen. ;) ;) ;) Showoff! :P Ralf ;-) PS

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Ralf Quint
On 4/16/2019 11:44 AM, Mattias Gaertner via fpc-pascal wrote: On Tue, 16 Apr 2019 11:37:56 -0700 Ralf Quint wrote: [...] Anyone who seriously develops software, specially desktop applications, is/should be using at least two (better 3 monitors). And the "many" different windows al

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Ralf Quint
On 4/16/2019 11:49 AM, Rainer Stratmann wrote: On Dienstag, 16. April 2019 11:37:56 CEST Ralf Quint wrote: On 4/16/2019 4:46 AM, Rainer Stratmann wrote: Anyone who seriously develops software, specially desktop applications, is/should be using at least two (better 3 monitors). That is

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Ralf Quint
On 4/16/2019 4:46 AM, Rainer Stratmann wrote: Are there plans to merge some windows? Like here (best solution): https://cdn.portableapps.com/GeanyPortable.png Because I think it is no more up to date. I don't know any other Software that uses so many windows across the whole desktop. It would b

Re: [fpc-pascal] Can FPC optimize: if (s[i]='a') or ...

2019-04-13 Thread Ralf Quint
On 4/13/2019 12:30 PM, Alexey Tor. wrote: E.g. i have a loop which test each s[i] char for several cases: 'a', 'b', 'c'. for i:= 1 to length(s) do if (s[i]='a') or (s[i]='b') or (s[i]='c') then ... Can FPC optimize it so it only reads s[i] once (to register), not 3 times? How about writin

Re: [fpc-pascal] Need Advice: Teaching a Child Programming

2019-03-06 Thread Ralf Quint
On 3/6/2019 8:06 AM, Anthony Walter wrote: I need some advice from you guys. I might soon be teaching a child about computer programming and am considering using Free Pascal as the first language. The problem is the child is a distance away from me and I want a way to see his code as he types

Re: [fpc-pascal] AVR GetMem/AllocMem

2019-01-26 Thread Ralf Quint
On 1/26/2019 1:29 AM, Dimitrios Chr. Ioannidis via fpc-pascal wrote: Hi,   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 dynamically allocate memory in AVR ? I have not used any A

Re: [fpc-pascal] FPC code to migrate Outlook PST file to MBOX format?

2019-01-13 Thread Ralf Quint
On 1/12/2019 4:26 AM, EsmeKael wrote: Try this pst to mbox conversion tool for further information please visit :- http://www.toolsbaer.com/pst-to-mbox-conversion/ Why is this repeated posting of advertising, that in no way answers the question of this thread, still allowed? Ralf --- This

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ralf Quint
On 11/3/2018 1:20 PM, James wrote: >And you can't just pop up a dialog window without having a window/form in the first place. That’s probably my problem…  My idea of just calling up the windows-API to get the save-as dialog probably won’t work without a form, even though I was able to get

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ralf Quint
On 11/3/2018 7:00 AM, James wrote: That is correct, I have only ever done console programming, but now I find I'm lost trying to do any kind of GUI programming.    I have a very simple program that works as a console application, but what I would like to do is have it use the Windows "Save AS

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ralf Quint
On 7/16/2018 8:36 AM, Anthony Walter wrote: To the OP: For the sake of brevity, my vote is simply "no" to all your suggestions. +1 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ fpc-pasc

Re: [fpc-pascal] Coercing record fields together

2018-07-09 Thread Ralf Quint
On 7/9/2018 9:22 AM, Ryan Joseph wrote: Could I do some RTL magic on a record to loop over its fields and set them to another record by name? In the example below I want to set all the fields in TRecA to matching named fields in TRecB. Just curious if we can do this automatically using RTL. t

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Ralf Quint
On 7/3/2018 10:41 AM, Martok wrote: >>> If you compile with range checks on, you get a runtime error. >> why are so many folks NOT developing with all the checks (range, heap, >> stack, >> etc) turned ON and then turning them off for production builds??? > Actually, while we're at it - it seems t

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Ralf Quint
On 7/3/2018 10:33 AM, wkitt...@windstream.net wrote: > On 07/03/2018 12:41 PM, Ralf Quint wrote: >> And no "new language" can absolve the programmer from properly doing >> their >> work. Everything else is just a quick hack, not a properly designed >> progra

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Ralf Quint
On 7/3/2018 10:09 AM, Marco van de Voort wrote: > In our previous episode, Santiago A. said: >> Pascal needs to break backward compatibility to advance, that is, in >> fact, a new language. But if pascal is struggling to survive, let alone >> a new language if you are not mozilla, google... > I t

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread Ralf Quint
On 7/3/2018 5:01 AM, Santiago A. wrote: > El 03/07/2018 a las 01:26, Jim Lee escribió: >> >> Without the implicit conversion of signed/unsigned values, the >> utility of the language is greatly diminished. Bollocks! Just learn to program in Pascal, not trying to have Pascal act just like another co

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Ralf Quint
On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Fri, 22 Jun 2018, Ryan Joseph wrote: I want to do a pivot away from the macro stuff to ask another question. Since I’ve wanted to contribute to the compiler for so long and I finally have a little understanding I’d like to know if

Re: [fpc-pascal] Proper preprocessor?

2018-06-21 Thread Ralf Quint
On 6/21/2018 8:08 AM, Sven Barth via fpc-pascal wrote: Of course you have permission to work on this, after all this is Open Source software. However whether we'd want to integrate this is a totally different topic. I personally am against it, cause I see no real world use in it and the usual

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Ralf Quint
On 11/25/2017 8:43 AM, Martin Schreiber wrote: > On Saturday 25 November 2017 15:04:05 Andreas Berger wrote: >> On the Android side I actually only need a graphical app with access to >> the Bluetooth and possibly be a TCP client. >> > And why Free Pascal to develop the android application? What wo

Re: [fpc-pascal] Forbidden access to the packages page

2017-11-02 Thread Ralf Quint
On 11/2/2017 1:02 PM, Cleverson Casarin Uliana wrote: > Hello, is it normal that the following URL gives a 403 forbidden error > when trying to access via Firefox? Here it does: > https://www.freepascal.org/packages/ Certainly not a Firefox problem, as I can reproduce this with Chrome and Opera as

Re: [fpc-pascal] Syntax to select constant or variable with function call

2017-09-24 Thread Ralf Quint
On 9/24/2017 12:07 PM, James Richters wrote: > Thank you for explaining how to achieve this. > I am curious about the meaning behind the prefixes you used: >> TVGA256Array = Array[0..255] of VGARGBRec; >> PVGA256Array = ^TVGA256Array; > Do the T and P in front of VGA256Array have a special me

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread Ralf Quint
On 8/24/2017 2:45 PM, Ched wrote: > And under "modern" Windows, the extended type, which is fully > supported by the FPU, is *degraded* to double. So, I can't do high > precision computation with fpc even if the native hardware permits > such computations. I'm glued to XP as the full capabilities o

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread Ralf Quint
On 8/24/2017 2:18 AM, Sven Barth via fpc-pascal wrote: > > Am 23.08.2017 02:16 schrieb "Paul Nance" >: > > > > Turbo Pascal also had a BCD unit. > > Free Pascal also has a BCD unit: FmtBCD. It provides a BCD type and > operators as well operator overloads. > And where wou

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-23 Thread Ralf Quint
On 8/22/2017 5:16 PM, Paul Nance wrote: > Turbo Pascal also had a BCD unit. Well, no, there was no unit, rather a version of Turbo Pascal 3.0x had a version that natively used BCD math for "reals" instead of the 6byte REAL type, just as there was a x87 version that used hardware x87 FP (IEEE754) fl

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-23 Thread Ralf Quint
On 8/23/2017 5:11 AM, Benito van der Zander wrote: >> Btw, anyone know about a BCD math implementation for Free Pascal, like >> it used to be implemented in DR CBASIC? (those were the days... ;-) ) > > > I have one here: http://benibela.de/sources_en.html#bigdecimalmath Thanks, but that is not quit

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-22 Thread Ralf Quint
On 8/22/2017 1:39 PM, Mark Morgan Lloyd wrote: > On 21/08/17 22:15, Ralf Quint wrote: >> On 8/21/2017 3:02 PM, James Richters wrote:> I am having an issue >> with a simple floating point application.  I am setting a variable to >> a specific value and immediately after I se

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread Ralf Quint
On 8/21/2017 3:34 PM, Daniel Franzini wrote: > It might be the case (I didn't do the math) that 999.999 doesn't have > an exact representation in IEEE-754 double-precision format, so the > best you get is an aproximation (a pretty good one, btw). Just use WriteLn (Draw_GX_Min:3:16) and you get no m

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread Ralf Quint
On 8/21/2017 3:02 PM, James Richters wrote: > 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 it to. Here's an example > >Draw_GX_Min:=999.999; >Writeln(Draw_GX_M

Re: [fpc-pascal] fpReport released

2017-08-20 Thread Ralf Quint
On 8/20/2017 11:35 AM, Michael Van Canneyt wrote: > > Hello, > > 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. Nifty! Ralf ;-) --- This email has been checked for viruses by Av

Re: [fpc-pascal] Correct syntax for initialized constants/variables

2017-04-28 Thread Ralf Quint
On 4/27/2017 12:22 PM, Ewald wrote: > On 27/04/17 20:49, Ralf Quint wrote: >> I try to include some initialized constants/variables in an application >> of mine, but somehow stumbled upon a stupid little problem that I can't >> figure out myself after nights on the co

Re: [fpc-pascal] Correct syntax for initialized constants/variables

2017-04-27 Thread Ralf Quint
On 4/27/2017 12:22 PM, Ewald wrote: > On 27/04/17 20:49, Ralf Quint wrote: >> I try to include some initialized constants/variables in an application >> of mine, but somehow stumbled upon a stupid little problem that I can't >> figure out myself after nights on the co

[fpc-pascal] Correct syntax for initialized constants/variables

2017-04-27 Thread Ralf Quint
I try to include some initialized constants/variables in an application of mine, but somehow stumbled upon a stupid little problem that I can't figure out myself after nights on the computer. I see in the reference docs (section 4.4) examples for arrays and examples for records, but in my case, I

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-21 Thread Ralf Quint
On 3/21/2017 11:58 AM, James Richters wrote: I have not tried FlushFileBuffers() yet, so I just tried it now, I am getting the same results. Well, that is expected, as the issue has nothing to do with your program, it's the caching of the operating system that is responsible for the actual ph

Re: [fpc-pascal] uses myunit in '../src/myunit.pas' ?

2017-02-13 Thread Ralf Quint
On 2/13/2017 2:02 PM, fredvs wrote: I guess you are searching for {$unitpath Documents} Yes, it is a excellent solution. but then some units might not rebuild automatically, It is not a problem, all that units are part of ../src and users should not touch it when compiling demos. Many than

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Ralf Quint
On 11/21/2016 8:05 AM, Jürgen Hestermann wrote: Am 2016-11-21 um 15:46 schrieb Graeme Geldenhuys: The age old rule of programmer source code always being in a mono-spaced font is ridiculous for this day and age. Why? I like monospaced fonts for code very much. Code is not a novel or a newspap

Re: [fpc-pascal] Missing messages

2016-10-31 Thread Ralf Quint
On 10/31/2016 1:12 PM, Florian Klämpfl wrote: Am 30.10.2016 um 19:11 schrieb Graeme Geldenhuys: On 2016-10-30 17:24, Sven Barth wrote: Same here... First Lazarus, now FPC. Can we not switch fpc-pascal to a NNTP newsgroup I used NNTP years ago the last time. How does marking read messages work

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Ralf Quint
On 10/17/2016 7:47 PM, fredvs wrote: @fpc-team: Why not register the concept of "smart-linking", nobody knows that word in other language. IMO, it would be good to add in wikipedia a article about "smartlink" and not forget to say that the concept of "smart-linking" comes from fpc. Well, it does

Re: [fpc-pascal] Reed-Solomon algorithm

2016-09-16 Thread Ralf Quint
On 9/16/2016 12:11 AM, duilio foschi wrote: Hi Ralf. thank you for the hint re the Jedi RS algorithm. The code is inspirational, but weak: [from file readme.txt] "As far as I can tell it works, but I made some rather rash assumptions which need to be confirmed by someone who knows what they a

Re: [fpc-pascal] Reed-Solomon algorithm

2016-09-15 Thread Ralf Quint
On 9/15/2016 3:07 PM, duilio foschi wrote: https://sourceforge.net/projects/rscode/?source=typ_redirect The code above seems much easier to use. There is also some code in the Delphi JEDI library at http://www.delphi-jedi.org/toolslibrary.html Ralf --- This email has been checked for viruse

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-24 Thread Ralf Quint
On 8/24/2016 1:04 AM, brian wrote: On Tue, 23 Aug 2016 23:40:06 +0800, you wrote: It should maybe be noted that this download apparently requires that you have Windows 10? Negative. I downloaded and installed it just fine on Windows 8.1/64... Ralf --- This email has been checked for viruses b

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread Ralf Quint
On 8/23/2016 6:19 PM, Stephen Chrzanowski wrote: FULLY understanding that this forum is for FPC and not Delphi/Embarcadero, has anyone installed Berlin, gone into Tools> Options> Environment Options> Form Designer and see NO OPTIONS show up? Stuff like the grid size, the toggling the Embeded D

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread Ralf Quint
On 8/23/2016 1:46 PM, Maciej Izak wrote: 2016-08-23 19:42 GMT+02:00 Jonas Maebe >: And you can't use any edition to "develop an application that is directly competitive to the Product or to any other Embarcadero products" AFAIK they can write any

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread Ralf Quint
On 8/23/2016 12:19 PM, geneb wrote: On Tue, 23 Aug 2016, Jonas Maebe wrote: On 23/08/16 19:14, Ralf Quint wrote: As a very rough summary, you can't use the Starter Edition if you are making more than $1000 a year from the software created with it... And you can't use any edition t

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread Ralf Quint
On 8/23/2016 9:49 AM, Dennis wrote: wkitt...@windstream.net wrote: On 08/23/2016 11:40 AM, Dennis wrote: Thanks a lot. I wonder if there is any catch. you mean like having to create an account, having to provide a phone number or having to run it in a winwhatever environment? ;) \ it say

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-25 Thread Ralf Quint
On 7/25/2016 5:06 AM, James Richters wrote: The TurboPascal version used to write to B800-B7FF for the monochrome monitor and A000-AFFF for the color monitor, the IDE was always on monochrome and the program executing was always on color... that's how it worked, No, it didn't. The monochrome sc

Re: [fpc-pascal] Build in a C compiler

2016-04-20 Thread Ralf Quint
On 4/20/2016 4:29 AM, Rainer Stratmann wrote: Am Mittwoch, 20. April 2016, 07:05:10 schrieb Mark Morgan Lloyd: No. Pascal and ALGOL are closely related, C and ALGOL are closely related. Pascal and C are not so closely related. As you can see here Pascal, C, and Basic are very close related. ht

Re: [fpc-pascal] PDF generator, try 2

2016-03-31 Thread Ralf Quint
On 3/31/2016 7:02 AM, Michael Van Canneyt wrote: Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in the PDF generator: e.g. Unicode fonts should now render correctly. The test program generates the following PDF: http://www.freepascal.org/~mi

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-05 Thread Ralf Quint
On 3/5/2016 12:03 PM, Michael Van Canneyt wrote: This is what I get with the normal test font: http://www.freepascal.org/~michael/test.pdf FYI, Opening up this document with the latest Adobe Reader DC (15.10.20059.40980, on Windows 8.1/64), I get an error message saying "The font 'Times' c

Re: [fpc-pascal] Please someone explain this to me

2016-02-09 Thread Ralf Quint
On 2/9/2016 2:58 PM, Anthony Walter wrote: 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? Often times I am trying to find a function or class or some other identifier an

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-01-31 Thread Ralf Quint
On 1/31/2016 7:14 AM, Vojtěch Čihák wrote: Hi, what is difference in produced assembler between ifthen(); and classic if - then - else? +1 I don't really see how this is different from properly writing if ... then ... else... either... :-\ Ralf --- This email has been checked for vir

Re: [fpc-pascal] [fpc-other] FPC Pestering Peacock (3.0.0) release

2015-11-27 Thread Ralf Quint
On 11/26/2015 7:59 AM, Michael Van Canneyt wrote: Judging by my own behaviour: I think the requirement to log in is a bit too much for people to actually perform an upvote. Well, I did. I even had to sign up (again) to be able to log in first...;-) Ralf --- This email has been checked for vi

Re: [fpc-pascal] howto store passwords

2015-11-01 Thread Ralf Quint
On 11/1/2015 7:50 PM, Anthony Walter wrote: Ideally you shouldn't store passwords at all. You store the hash to the password. In this way, someone at your business, or someone with access to your business, or if someone mistakenly installs some malicious software, your users passwords can never

Re: [fpc-pascal] Basic Windows tutorial

2015-10-22 Thread Ralf Quint
Ryan Joseph wrote: On Oct 23, 2015, at 2:03 AM, Sven Barth wrote: Out of curiosity: in how far aren't you a fan of Lazarus' layout? Many parts can be configured. Especially the code tools that Lazarus provides makes navigating/writing code rather easy. I don’t use the RAD tools so those are

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Ralf Quint
On 10/3/2015 2:15 PM, Bo Berglund wrote: Yes, I found that but it seems to be a visual component that will interact with a user. My program is a command line application started by cron and running on a headless Pi2B installed inside a box in the wilderness. Only communicates via a mobile broad

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Ralf Quint
On 10/3/2015 11:30 AM, Bo Berglund wrote: I am wondering if there is some method to autoupdate an fpc program running on a RaspberryPi? It really should not matter where the fpc program runs but I figured the operating system has some influence, so let's limit this to Linux. What I would like is

Re: [fpc-pascal] alignment of records

2015-08-10 Thread Ralf Quint
On 8/8/2015 12:30 AM, Sven Barth wrote: Am 08.08.2015 00:37 schrieb "Ralf Quint" <mailto:freedos...@gmail.com>>: > > On 8/6/2015 8:25 PM, Xiangrong Fang wrote: >> >> It seems that $packrecord does not work at all. > > I always explicitly use PACKED

Re: [fpc-pascal] alignment of records

2015-08-07 Thread Ralf Quint
On 8/6/2015 8:25 PM, Xiangrong Fang wrote: It seems that $packrecord does not work at all. I always explicitly use PACKED Record as in /T//ypeifmap = PACKED Record/ / mem_start: dword;/ / mem_end: dword;/ ///b//ase_addr: word;/ /

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread Ralf Quint
On 2/4/2015 2:43 PM, Anthony Walter wrote: Ralph, not to be rude, but you are either not paying attention or being dense. I said: I am not dense, but you seem to go that direction. For one, my name is Ralf not Ralph. Looks like you need to pay attention... 'And one hyper link with on the front

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread Ralf Quint
On 2/4/2015 12:22 PM, Anthony Walter wrote: Ralph, regarding the first point of FPC 3.0, we already discussed it in previous replies. Check those messages to get caught up. My general objection still stands... Regarding the automatic download, I'm not sure where you are talking about. As soon

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread Ralf Quint
On 2/4/2015 3:20 AM, Anthony Walter wrote: Okay, I'll work on new builds ASAP which include the revision numbers from inside Lazarus as well as clearly labeled revision text files placed in the FPC and Lazarus folders. These files will contain the branch name and SVN revision number. I've mod

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
On 12/19/2014 12:53 PM, Joost van der Sluis wrote: On 12/19/2014 09:48 PM, Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program

[fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList; S : String; begin S := 'Test'; T.Crea

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread Ralf Quint
On 12/3/2014 2:09 PM, Bart wrote: I don't dispute teh way cmd/command treats ? in dir, I merely stated that the OS function FindFirstFile des not do it like that. (And so we should not change FindFirst/FidNext behaviour.) Well, I have no way/time to do a more extensive test right now, but I am

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread Ralf Quint
On 12/3/2014 12:27 PM, Bart wrote: On 12/3/14, Ralf Quint wrote: On any DOS based OS (that includes OS/2 and Windows), the "?" wildcard character will find any character, including no character at all in that position. So in your example, t?.txt will find t.txt and tx.txt but not t

  1   2   >