Re: [fpc-pascal] Compilation raised exception internally

2025-04-25 Thread Michael Van Canneyt via fpc-pascal
sure you don't have circular references. It happens often in such cases. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sqldb, copy table between databases is painfully slow

2025-02-18 Thread Michael Van Canneyt via fpc-pascal
there a way to reduce the time for the ExecSql? You must prepare the desttable query before starting the loop. Then it does not need to prepare/unprepare. the faster way is using a foreign table definition in Postgres, though. You can then do the copy w

Re: [fpc-pascal] gmp

2025-02-17 Thread Michael Van Canneyt via fpc-pascal
rew/lib to the link search path. So good to go. For next release can we change the gmp.pas source to: {$ifdef darwin} {$linklib gmp.dylib} {$endif} Done. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.o

Re: [fpc-pascal] gmp

2025-02-14 Thread Michael Van Canneyt via fpc-pascal
copy the sources to your project, change the version number and you should be all set. Of course, if the library changed a lot - 7 versions is a lot, it may well be that the definitions in the unit are no longer correct. Michael.___ fpc-pascal mai

Re: [fpc-pascal] fcl-stl docs and examples

2025-02-04 Thread Michael Van Canneyt via fpc-pascal
On Mon, 3 Feb 2025, ppadilcdx--- via fpc-pascal wrote: Is there a reason that the fpc installation does not include the fcl-stl examples and docs in the share/doc directory? I had to download the fpc source to find them (in packages/fcl-stl). No, it is an oversight. Michael

Re: [fpc-pascal] Compile errors

2025-01-24 Thread Michael Van Canneyt via fpc-pascal
functions previously found in the ncurses library are now simply in another library, the question then becomes 'which one ?' Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Michael Van Canneyt via fpc-pascal
On Tue, 21 Jan 2025, Frank McCormick via fpc-pascal wrote: On 2025-01-21 09:00, Michael Van Canneyt via fpc-pascal wrote: On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote: I have been trying out a CRT replacement called NCRT and OCRT and am getting link errors which I can&#

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Michael Van Canneyt via fpc-pascal
//unix.stackexchange.com/questions/30526/undefined-reference-to-symbol-acs-map-when-running-makeconfig So try to add {$linklib tinfo} to your program source. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] unixsockets

2025-01-03 Thread Michael Van Canneyt via fpc-pascal
On Sat, 28 Dec 2024, Andrew Haines via fpc-pascal wrote: Hi, is unixsockets.pp in rtl-extra supposed to be included when fpc is built for linux? I ran Yes. It was not built, I added it to fpmake. I also applied the fix you mentioned for the size_t problem. Michael

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread Michael Van Canneyt via fpc-pascal
On Fri, 20 Dec 2024, Karoly Balogh via fpc-pascal wrote: Hi, On Fri, 20 Dec 2024, Michael Van Canneyt via fpc-pascal wrote: If I compile it with: Free Pascal Compiler version 3.3.1-16969-g798f2ba632-dirty [2024/11/28] for i386 I get almost what I expected, but my #$EE is now been changed

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread Michael Van Canneyt via fpc-pascal
's susceptible to codepage issues, and will most likely behave differently depending on whether the ANSI or WideString version of the underlying windows API is used. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to compile program from command line on Linux?

2024-12-16 Thread Michael Van Canneyt via fpc-pascal
ply a lazbuild yourproject.lpi lazbuild is a command-line tool that comes with lazarus, it can be used to compile a project file with the same settings as would be used if you were compiling in the IDE. Michael. ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Procedural parameters

2024-12-16 Thread Michael Van Canneyt via fpc-pascal
implementation. The point of the message was that some flexibility in judgment is needed, and that this works in both directions: both more or less than what is in a standard can be expected. I gave examples of both situations. Michael. ___ fpc-pascal m

Re: [fpc-pascal] Procedural parameters

2024-12-15 Thread Michael Van Canneyt via fpc-pascal
On Sun, 15 Dec 2024, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: It's not because something is in the pascal standard, that FPC has it. It is. Appendix D6 of the Programmer's Refe

Re: [fpc-pascal] Procedural parameters

2024-12-15 Thread Michael Van Canneyt via fpc-pascal
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: Macpascal and Iso pascal have procedural parameters, e.g. function A( function B: double): double; Is there a $modeswitch

Re: [fpc-pascal] Procedural parameters

2024-12-14 Thread Michael Van Canneyt via fpc-pascal
annot be used to declare types. Similarly, you also cannot write: function A(B : (one,two,three)) : double; Also, I wonder if "ISOPROGRAMPARAS" in the Programmer's Guide is spelled correctly. It is, as that is what is used in the compiler: globtype.pas:736 Michael. _

Re: [fpc-pascal] Incremental compiling not working in new version

2024-12-04 Thread Michael Van Canneyt via fpc-pascal
On Wed, 4 Dec 2024, Sven Barth via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal schrieb am Mi., 4. Dez. 2024, 18:24: @Michael: do you think you can take a look? I also got the feeling that it tries to compile more while nothing changed than with 3.2.2, though I did not yet

Re: [fpc-pascal] Incremental compiling not working in new version

2024-12-04 Thread Michael Van Canneyt via fpc-pascal
crashes though then what I have now. The likely candidate is the reworked module loading that still has its problems. Seems likely. @Michael: do you think you can take a look? I also got the feeling that it tries to compile more while nothing changed than with 3.2.2, though I did not yet have

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

2024-12-01 Thread Michael Van Canneyt via fpc-pascal
On Sun, 1 Dec 2024, Hairy Pixels via fpc-pascal wrote: On Nov 30, 2024 at 11:54:21 PM, Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: sorry but it’s not really part of the compiler, just something that generates commands it feeds to the compile right?.

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

2024-11-30 Thread Michael Van Canneyt via fpc-pascal
On Sat, 30 Nov 2024, Hairy Pixels via fpc-pascal wrote: On Nov 30, 2024 at 3:11:10 PM, Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: This is very much on topic. FPC has no build system Huh ? Of course it does, it has 2. fpcmake (older) and fpmake.

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

2024-11-30 Thread Michael Van Canneyt via fpc-pascal
llow the instructions from Install.txt I get this: This is very much on topic. FPC has no build system Huh ? Of course it does, it has 2. fpcmake (older) and fpmake. Please don't spread incorrect information. Michael.___ fpc-pasc

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

2024-11-24 Thread Michael Van Canneyt via fpc-pascal
resentative with bullhorn for the lists pages ;-) Well done pages, for sure! Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-11-18 Thread Michael Van Canneyt via fpc-pascal
a fpc config file, then in that case it is definitely documented here: https://www.freepascal.org/docs-html/current/user/userse17.html Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinf

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

2024-11-18 Thread Karl-Michael Schindler via fpc-pascal
> discussion.? (mostly from yourself). It is quite singular, but there is Ultrastar Deluxe (https://github.com/UltraStar-Deluxe/USDX), a cross-platform Karaoke game, which is based on fpc using OpenGL, SDL and quite a number of other libraries instead of lazarus. However, it is quite involved

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

2024-11-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Nov 2024, Marcos Douglas B. Santos via fpc-pascal wrote: On Sat, Nov 16, 2024 at 11:43 AM Michael Van Canneyt via fpc-pascal wrote: > I could see that if it was a compiler for “Pascal” which was defined by > some other group and you could reference them but it isn’t. FP

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

2024-11-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Nov 2024, Hairy Pixels via fpc-pascal wrote: On Nov 16, 2024 at 7:24:01 PM, Michael Van Canneyt wrote: That said, the Free Pascal website is not about the pascal language. It is about the compiler. The GNU compiler or LLVM C compiler also do not contain code on their website

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

2024-11-16 Thread Michael Van Canneyt via fpc-pascal
ere is only one Rust, Ruby whatnot. Their compiler/interpreters *are* the language, so there it is logical and suitable to present the language on their site. But my plan is to include a 'Try it out now' page with the pas2js compiler (or the fpc webassembly compile

Re: [fpc-pascal] docs

2024-10-21 Thread Michael Van Canneyt via fpc-pascal
xml. fpdoc is documented here https://www.freepascal.org/docs-html/current/fpdoc/fpdoc.html Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-19 Thread Michael Van Canneyt via fpc-pascal
ARC is a bad idea (it may well be), but because it is not realistic to do so, even if we wanted to. As a corollary, the conclusion is that if you want ARC, you should indeed use another language. I regret that this is so, but I think this really is the u

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

2024-10-18 Thread Michael Van Canneyt via fpc-pascal
it) Of course, that means no 3rd party code must introduce global vars. If it does => bad. I agree with Martin. Threading should always be optional. But to have a set of 'primitive' classes (lists etc.) that handle threading in SyncObjs would be good, though. So people d

Re: [fpc-pascal] Funding for FOSS projects, needs funding.json file in Gitlab

2024-10-18 Thread Michael Van Canneyt via fpc-pascal
azarus/FPC Foundation is better geared to manage funding and coordinate targeted development of features? That is the purpose of the foundation. I was planning to look at the funding manifest this weekend... Michael.___ fpc-pascal maillist - fpc-

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

2024-10-17 Thread Michael Van Canneyt via fpc-pascal
On Thu, 17 Oct 2024, Sven Barth via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal schrieb am Do., 17. Okt. 2024, 11:40: On Wed, 16 Oct 2024, Hairy Pixels via fpc-pascal wrote: On Oct 17, 2024 at 12:03:47 AM, Guillermo Martínez Jiménez via fpc-pascal < fpc-pas

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

2024-10-17 Thread Michael Van Canneyt via fpc-pascal
singly, they removed again all automatic memory management. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-17 Thread Michael Van Canneyt via fpc-pascal
a "modern" site) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-17 Thread Michael Van Canneyt via fpc-pascal
On Wed, 16 Oct 2024, Hairy Pixels via fpc-pascal wrote: On Oct 17, 2024 at 4:12:08 AM, Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: I have proposed this to the FPC core team, after some insistance I managed to get a list of constraints from (if memory

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

2024-10-16 Thread Michael Van Canneyt via fpc-pascal
site (20+ years old?) can use an overhaul, and that with the above plan, no developer time needs to be spent on it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-16 Thread Michael Van Canneyt via fpc-pascal
st, they would not have made it available to all developers in the company. So if you want young people to come to pascal, but present them with an IDE that looks like a 1995 IDE, don't be surprised that they don't stay. Michael. ___ fpc-pa

Re: [fpc-pascal] JSON-Schema added

2024-08-18 Thread Michael Van Canneyt via fpc-pascal
welcome... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] JSON-Schema added

2024-08-17 Thread Michael Van Canneyt via fpc-pascal
$ref handling is a bit hairy. Available documentation is definitely lacking in clarity) The next step is adding support for OpenApi (AKA swagger). Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/ma

Re: [fpc-pascal] [Fpc-mirrors] FPC 3.2.2, miért nincs tovább fejlesztve ...

2024-08-13 Thread Michael Van Canneyt via fpc-pascal
Hungarian: -- Legyen szíves angolul írni. A levelezőlista nyelve angol. Valószínűleg csak néhány ember van itt, aki ért magyarul. Valószínűleg a többiek is szeretnék érteni, amit írsz. (a "Google fordító" segítségével fordítva) Köszönöm. English: Please have the courte

[fpc-pascal] MacOS Developer wanted

2024-08-12 Thread Michael Van Canneyt via fpc-pascal
ht be interested, feel free to forward this mail to them. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation typo?

2024-07-27 Thread Michael Van Canneyt via fpc-pascal
the same as NetAddrToStr6, but with the bytes in correct order. I think that the second "NetAddrToStr6" should be something else, probably "HostAddrToStr6". Yes. Thanks, I corrected it. Michael. ___ fpc-pascal mai

Re: [fpc-pascal] Sub-millisecond time measuring

2024-07-01 Thread Michael Van Canneyt via fpc-pascal
On Mon, 1 Jul 2024, Sven Barth via fpc-pascal wrote: Adriaan van Os via fpc-pascal schrieb am Sa., 29. Juni 2024, 21:21: Michael Van Canneyt via fpc-pascal wrote: Is that a function in the RTL? I can't find it. No, these are platform-specific functions. g_get_monotonic_ti

Re: [fpc-pascal] Sub-millisecond time measuring

2024-06-29 Thread Michael Van Canneyt via fpc-pascal
u will probably find in the Windows unit. Microseconds can be found in the Timer unit (part of univint package) Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.3.x breaks the Firebird Project's Firebird.pas

2024-06-18 Thread Michael Van Canneyt via fpc-pascal
elf does not use TMonitor. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.3.x breaks the Firebird Project's Firebird.pas

2024-05-04 Thread Michael Van Canneyt via fpc-pascal
On Sat, 4 May 2024, Tony Whyman via fpc-pascal wrote: Michael, I believe that the diplomatic answer to your response is that it is "disappointing". This is a serious problem and needs to be discussed. Thank you for being diplomatic. Interfaces between modules written in

Re: [fpc-pascal] FPC 3.3.x breaks the Firebird Project's Firebird.pas

2024-05-02 Thread Michael Van Canneyt via fpc-pascal
possibly with a wrapper class for easier access as in the above. That should not be difficult to do, and it will work in Delphi as well. The advantage is that it will be more robust against future changes as it makes no assumptions about the layout of objects. Michael.

Re: [fpc-pascal] AnsiString address changed

2024-03-18 Thread Michael Van Canneyt via fpc-pascal
course there must be, that's the whole point of copy-on-write. As soon as one reference is changed, a copy is made if the reference count is larget than 1, and this copy is changed. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] AnsiString address changed

2024-03-17 Thread Michael Van Canneyt via fpc-pascal
e address of the pointer itself, not the address of what S (or s1) points to. Obviously the address of the s is different of s1. What you want to do is print hexstr(pointer(s)) if you do that, you'll have the same output 3 times. Michael. _

Re: [fpc-pascal] FP IDE sources

2024-03-14 Thread Michael Van Canneyt via fpc-pascal
no package other that is a program. chm has some tools but IMO they are also misplaced and should be in utils. So the IDE - for me - is definitely a utility. Given the times indicated above, it would make a considerable difference to move it. Michael.

Re: [fpc-pascal] FP IDE sources

2024-03-14 Thread Michael Van Canneyt via fpc-pascal
On Thu, 14 Mar 2024, Tomas Hajny via fpc-pascal wrote: On 2024-03-14 11:06, Marco van de Voort via fpc-pascal wrote: Op 14-3-2024 om 11:04 schreef Michael Van Canneyt via fpc-pascal: To me it therefore seems a better idea to move the IDE to utils, and to have a toplevel make command

Re: [fpc-pascal] FP IDE sources

2024-03-14 Thread Michael Van Canneyt via fpc-pascal
o the argument for having it in packages. To me it therefore seems a better idea to move the IDE to utils, and to have a toplevel make command that does the same as 'make all' simply without the utilities. Or have a 'NOUTILS=1' define. Michael.___

Re: [fpc-pascal] [fcl-web] [jsonrpc] [fpjsonrpc.pp] DoCheckParamArray in TCustomJSONRPCHandler

2024-02-22 Thread Michael Van Canneyt via fpc-pascal
On Thu, 22 Feb 2024, Michael Anochin via fpc-pascal wrote: Hello, the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an exception with the message "List index (0) out of bounds". This happens, for example, if ParamArray is empty and there are not required pa

[fpc-pascal] [fcl-web] [jsonrpc] [fpjsonrpc.pp] DoCheckParamArray in TCustomJSONRPCHandler

2024-02-22 Thread Michael Anochin via fpc-pascal
Hello, the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an exception with the message "List index (0) out of bounds". This happens, for example, if ParamArray is empty and there are not required parameter in ParamDef (required not set). In that case ParamArray[i] not exists, s

Re: [fpc-pascal] Floating point question

2024-02-19 Thread Michael Van Canneyt via fpc-pascal
at all. It seems to be a windows-specific problem. Here is the result of your program when executed on Linux: Const_Ans1 = 2.85714298486709594727E-0001 Var_Ans1 = 2.85714298486709594727E-0001 As you can see, the result is identifical. As for the explanation, I will have to leave that to the comp

Re: [fpc-pascal] Floating point question

2024-02-17 Thread Michael Van Canneyt via fpc-pascal
ant type to use. (incidentally, this is one of the reasons the FPC team does not want to make inline variables as Delphi does, since there the type will again be determined by the compiler - just as for constants, leading to ambiguity...) Michael. ___ fpc-

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-02-16 Thread Michael Van Canneyt via fpc-pascal
On Fri, 16 Feb 2024, Pique7 via fpc-pascal wrote: On Mon, 8 Jan 2024 22:08:16 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: On Mon, 8 Jan 2024, Pique7 via fpc-pascal wrote: Disregarding the RTF for a moment, you'd need to save the contents of the text fields in a TStrin

Re: [fpc-pascal] Floating point question

2024-02-13 Thread Michael Van Canneyt via fpc-pascal
ce on the final answer, not on every term before the calculation. As Jonas said, this would result in less efficient code, since all the math will then be done at full precision, which is slower. As usual, it is a trade-off between size (=precision) and

Re: [fpc-pascal] Floating point question

2024-02-12 Thread Michael Van Canneyt via fpc-pascal
he type is of the expression on the left. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2024-02-01 Thread Michael Van Canneyt via fpc-pascal
On Wed, 31 Jan 2024, Amir--- via fpc-pascal wrote: Without more info (declaration of ChildTClass, declaration of the constructor of that class etc), it is not possible to comment. We need a complete compilable code sample to provide you with more insight. Please have a look at the attach

Re: [fpc-pascal] Read Field names from VMT

2024-01-30 Thread Michael Van Canneyt via fpc-pascal
mment. We need a complete compilable code sample to provide you with more insight. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2024-01-22 Thread Michael Van Canneyt via fpc-pascal
ress('Int2')^).IntVal); Terribly convoluted code, though... Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2024-01-21 Thread Michael Van Canneyt via fpc-pascal
(const name : shortstring) : pointer; This function is used internally by the streaming system (see TComponent.SetReference), so it should always work. Michael. You can use the PVmtFieldTable and PVmtFieldEntry types from the TypInfo unit: === code begin === program tfield; {$mode objfpc}{$H

Re: [fpc-pascal] IntToStr implementation

2024-01-18 Thread Michael Van Canneyt via fpc-pascal
sion } . actual-parameter-list = "(" actual-parameter { "," actual-parameter } ")" . The compiler obviously can parse it. More accurately, I meant: you cannot write a function declaration to handle that syntax. procedure Str(O : Intege

Re: [fpc-pascal] IntToStr implementation

2024-01-18 Thread Michael Van Canneyt via fpc-pascal
to count generics and implicit specialization as "standard syntax") Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trash variables (-gt) - Translation

2024-01-17 Thread Michael Van Canneyt via fpc-pascal
; ? Or better suggestion? That seems most correct to me. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Extra linkxxx.res files left over when compiling/building project

2024-01-15 Thread Michael Van Canneyt via fpc-pascal
tool) then this file is left, it helps to examine what happened. You can delete them. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] "Address of" question

2024-01-14 Thread Michael Van Canneyt via fpc-pascal
n p := @Byte(b); This is a typecast of b from which you take the address. The typecast is superfluous. p:=@b will have the same effect. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailm

Re: [fpc-pascal] Virtual methods on sealed classes

2024-01-08 Thread Michael Van Canneyt via fpc-pascal
optimizations are done. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-08 Thread Michael Van Canneyt via fpc-pascal
I'm not sure how the band will behave. Michael. Thanks again for your suggestions. I haven't tried it yet but now I've got the idea. Your are so optimistic but I still fear all the things which might make troubles in a more complex report with grouping, master/detail data, calculat

Re: [fpc-pascal] Quiz

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
does not compile, although I don't see why if kr5 is accepted.. Delph does not accept it. kr7 = 1.0e+2; kr8 = 1.0 e + 2; kr8 Does not compile, probably same reason as kr6. Delphi does not accept it. Mi

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
tween FPC_USE_LIBC and not are rather slim syscalls anyway, so the main bunch of Pascal code is still the same in both cases. I know this, but most likely users will not realize this... :-) Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
us options. I think we should also explain why linking to C has almost no effect on actual binary size. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] RIP: Software design pioneer and Pascal creator Niklaus Wirth

2024-01-05 Thread Michael Van Canneyt via fpc-pascal
aily&utm_medium=newsletter&utm_content=top-article Yes, we put a short notice on the Free Pascal homepage... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-03 Thread Michael Van Canneyt via fpc-pascal
On Tue, 2 Jan 2024, Pique7 via fpc-pascal wrote: On Tue, 2 Jan 2024 00:02:35 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: On Mon, 1 Jan 2024, Pique7 via fpc-pascal wrote: Hello everyone, I have already asked this and related questions in the Lazarus Forum. I want to improve

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-01 Thread Michael Van Canneyt via fpc-pascal
I think this is perfectly doable without any changes to the original code. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to avoid Copy

2024-01-01 Thread Michael Van Canneyt via fpc-pascal
On Mon, 1 Jan 2024, Hairy Pixels via fpc-pascal wrote: On Dec 30, 2023, at 3:18 PM, Michael Van Canneyt via fpc-pascal wrote: And try to avoid "for r in data" because it will create a copy for each element in the list. This seems more like bad compiler design than anything.

Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Michael Van Canneyt via fpc-pascal
ne saw the need. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to avoid Copy

2023-12-30 Thread Michael Van Canneyt via fpc-pascal
ou defined TListOfMyRecord, but if it is a generic TList, better change it to a TArray or Array of TMyRecord, in which case you can use a pointer to the consecutive records in the array. Generics are convenient, but slow. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread Michael Van Canneyt via fpc-pascal
TELN is special and not something I can duplicate? Writeln() is special. You cannot duplicate it. What you can do is use WriteStr(), it has the same action as Writeln() but writes to a string instead of a file. https://www.freepascal.org/docs-html/current/rtl/system/writest

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-25 Thread Michael Van Canneyt via fpc-pascal
On Mon, 25 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: This is not correct either, as it suggests that ( ... ) is correct. It is not, if you use ... there must be other arguments present. That is offending the reader: "You are to stupid

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-25 Thread Michael Van Canneyt via fpc-pascal
On Sun, 24 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: I added univ and documented it. Something seems to have gone wrong with the defintion on page 212. Corrected, thanks. Having a better look, the rule defines just one parameter. So

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
On Sun, 24 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: The following zip file contains the updated documentation: http://downloads.freepascal.org/fpc/beta/3.2.4-rc1/docs/doc-pdf.zip Besides correcting your remarks, I did a general overhaul: - I

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt wrote: 32. Are the set operators "include", "exclude" missing in the syntax diagrams ? Is "><" missing (specifically) as set operator in the syntax diagrams ? Include

Re: [fpc-pascal] More syntax questions (part 4)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Sat, 16 Dec 2023, Adriaan van Os via fpc-pascal wrote: More questions about the FreePascal Language Reference (version 3.2.0), part 4 34. Are macpas LEAVE and CYCLE statements

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
; var theFoundIndex : Int32): boolean; But this kind of procedural parameter doesn't seem to be included in the rule for . it is allowed in macpas and iso modes. I added univ and documented it. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
yword. Added to the diagrams. I changed the diagram to be more clear (hopefully). Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] More syntax questions (part 4)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: 37. Shouldn't the macpas "mwpascal" modifier be added to ? call-modifiers = "register" | "cdecl" | "pascal" | "stdcall" |

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-24 Thread Michael Van Canneyt via fpc-pascal
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: 28. The documentation for macpas "UNIV" is missing ? I have no idea what this is ? UNIV is macpas specific (as mentioned in Appendix D.6 of the Programmer's Manual) T

Re: [fpc-pascal] Double finalize

2023-12-20 Thread Michael Van Canneyt via fpc-pascal
TEST_$$_TMANAGEDOBJECT,%rsi leaq-96(%rbp),%rdi callfpc_finalize movl-92(%rbp),%eax Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] More syntax questions (part 4)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
#x27;t seem to be referenced anywhere in the syntax, so it may have to be added to the rule ? To the library rule, but also to the unit rule, because it can also appear in a unit... 40. < recordoperator-definition> = ? Yes. 41. Is it cor

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Dec 2023, Wayne Sherman wrote: On Sat, Dec 16, 2023 at 7:35 AM Michael Van Canneyt wrote: Hm. Lot of corrections to do.. I'll be busy tonight :-) Are these grammars in GIT so others can help by submitting merge requests? That way you can spread the love :-) Every

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
g module, stopping The missing >< is an oversight 33. Section 12.1 gives "sign" in boldface in the rule for , suggesting that it is a keyword. Is that correct ? No. It is not a keyword, but one of '+' or '-'. Hm. Lot of corrections to do.. I'll be busy tonight :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] More syntax questions (part 2)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
s it ? default-parameter-value = constant-expression 25. Section 16.2 defines a rule that refers to a rule interface-part = "INTERFACE" [ uses-clause ] { constant-declaration-part | type-declaration-part | variable-declaration-part | property-declaration-part | procedure-head

Re: [fpc-pascal] More syntax questions (and more to follow)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: Thanks for the replies. Please note that the syntax diagrams are NOT meant to be exhaustive. They are an aid to explain the syntax. I strive to make them as correct as possible, but they

Re: [fpc-pascal] More syntax questions (and more to follow)

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
= identifier . Yes. Added. Thanks for the questions. They showed me deficiencies of the text. I have corrected what could be done quickly. For the typed constants I need some time to correct/add them, since I need to provide some explanatory text. Please note that the syntax diagrams ar

Re: [fpc-pascal] case statement

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
On Fri, 15 Dec 2023, Adriaan van Os wrote: Michael Van Canneyt via fpc-pascal wrote: The fact that the semicolon before the else is optional ? I don't see a semicolon in the formal syntax. This works: OK, than an optional semicolon must be added to the rule exceptionhan

Re: [fpc-pascal] method-definition

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
static' is required. In my opinion this is superfluous, but embarcadero decided otherwise. The requirement for parameters in record constructors I guess comes from C++ builder by Embarcadero. There are some limitations imposed by C++. Whether they could be dropped in FPC is something Sven

Re: [fpc-pascal] case statement

2023-12-15 Thread Michael Van Canneyt via fpc-pascal
On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote: Note that the same ambiguity exists in the syntax (and this is less well known) exceptionhandlers = [ exception-handler

Re: [fpc-pascal] case statement

2023-12-15 Thread Michael Van Canneyt via fpc-pascal
eption-handler = "ON" [ identifier ":" ] class-type-identifier "DO" statement . as ends with a and the optional <"ELSE" statement-list> part start with "ELSE". Sloppy language design, I assume by Borland. What exactly do you consider &q

  1   2   3   4   5   6   7   8   9   10   >