[fpc-pascal] 64-bit ARM and CPUARM

2024-05-21 Thread Ched via fpc-pascal
Hello All, Just a little question. In In https://www.freepascal.org/docs-html/prog/progap7.html , there is specified that CPUARM Free Pascal target is an ARM 32-bit processor. What about ARM 64-bit processors like the ones in Raspberries ? Something similar to CPUPOWERPC with two subcatagorie

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

2023-03-29 Thread Ched via fpc-pascal
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 ? Kindest regards, Ched' Le 29.03.23 à 21:07, Jonas Maebe via f

Re: [fpc-pascal] Bug or feature ?

2022-07-27 Thread Ched via fpc-pascal
Le 27.07.2022 à 17:41, DougC via fpc-pascal a écrit : WRITELN(F: 'Hello'); is not proper Pascal. Yes, Doug, I agree ; but it is compiled with no warning and runs perfectly. Now, why the compiler do not complain... ? Cheers, Ched' ___ fpc-pascal ma

[fpc-pascal] Bug or feature ?

2022-07-27 Thread Ched via fpc-pascal
Hello All, I have a long code which include lines for writing stuffs into an assigned writable text-file F. WRITELN(F: 'Hello'); WRITELN(F, 'Hello'); The code can be compiled with 3.2.2 in i386/windows and i386/linux and runs both times at perfection. But... i'm wondering if the first

Re: [fpc-pascal] {$include %dateyear%}

2021-12-25 Thread Ched via fpc-pascal
Well, Writeln('{$I %DATEMONTH%}'+'/'); can be compiled, but the answer is... {$I %DATEMONTH%} . I think that my level of english is by far too low to make the correct sentence. Cheers, James, Raoul Le 25.12.21 à 21:06, James Richters a écrit : I see what you mean... I thought it was an In

Re: [fpc-pascal] {$include %dateyear%}

2021-12-25 Thread Ched via fpc-pascal
Helolo James, Thank you for your comment and proposal. As there is no type associated with non-string results, would it be better to say number instead of integer ? Or integer number ? Season's greetings ! Cheers, Ched' Le 24.12.2021 à 22:32, James Richters via fpc-pascal a écrit : I woul

Re: [fpc-pascal] Writing Pascal Physics and Vectors

2021-10-15 Thread Ched via fpc-pascal
> Fade := Fade * Fade * Fade * Fade * Fade; Why not Fade:=sqr(sqr(Fade))*fade ? Cheers, Anthony, Ched Le 15.10.21 à 22:18, Anthony Walter via fpc-pascal a écrit : I've been working on writing Pascal bindings a friendly object orient interface to a few open source projects. I have put toget

Re: [fpc-pascal] string vs char

2021-10-15 Thread Ched via fpc-pascal
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 ! Regards, Dennis, Ched' ___ fpc-pascal mailli

Re: [fpc-pascal] Why the difference in the rounded results?

2021-10-15 Thread Ched via fpc-pascal
Hello All, In https://wiki.freepascal.org/Variables_and_Data_Types about Strings: // where: 1 < length <= 255 is to read as // where: 1 <= length <= 255 isn't it ? Cheers, Ched Le 15.10.21 à 18:44, James Richters via fpc-pascal a écrit : The difference is because of the way floating point

Re: [fpc-pascal] Windows Defender considers fp.exe a malicious program

2021-02-13 Thread Ched via fpc-pascal
Hello, For one software I compile with fpc, Avast always complained. But only when compiled for debugging. That exe was sent to the false positive departement, and it toke about _one mounth_ to have a corrected version of the AV. Afterwhat, he never complained even with reworked source code.

[fpc-pascal] CRT unit and bug #32558

2020-11-06 Thread Ched via fpc-pascal
Dear All, I have some difficulties using the crt unit. For what I can see, https://bugs.freepascal.org/view.php?id=32558 could well be the answer, specialy a call like SetUseACP(False); . At the end of the bug report, it is said that the crt unit will be ugraded in 3.1.1. I run 3.2.0 under bot

Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread Ched via fpc-pascal
Hello James, You'll find a source of happiness with unit fphttpclient . Particularily with the simplget function: TFPHTTPCLIENT.SIMPLEGET('http://192.168.1.4/3/00') It is said that it works with https also, but under the Mageia7 distro, you probably encounter problems I haven't yet solved.

Re: [fpc-pascal] Extended type under Win64

2020-03-08 Thread Ched via fpc-pascal
Le 26.02.20 à 15:11, denisgolovan via fpc-pascal a écrit : In theory yes, but it's not recommended, because Microsoft does not recommend it (not to mention that it isn't even remotely tested as much as the normal Win64 target). Regards, Sven Got it. Thanks for the clarification. -- Regards,