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

2024-12-20 Thread James Richters via fpc-pascal
>And the same machine otherwise ? Yes everything is the same other than the version I am trying to compile with, and being run on the same system. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/l

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

2024-12-20 Thread Marco van de Voort via fpc-pascal
Op 20-12-2024 om 15:36 schreef James Richters: I assume that it is exactly the same source on exactly the same system with exactly the same compiler configuration. And the same machine otherwise ? ___ fpc-pascal maillist - fpc-pascal@lists.free

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

2024-12-20 Thread Sven Barth via fpc-pascal
James Richters via fpc-pascal schrieb am Fr., 20. Dez. 2024, 15:16: > It does seem that '?' is being substituted in, but I don't know why, the > ascii codes I am using are valid character they are: > #$D0 - #$EF which are these: Þßàáâãäåæçèéêëìíîïï It's not like they are > non-characters like e

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

2024-12-20 Thread James Richters via fpc-pascal
>Could it be due to a change of compilation mode (DELPHIUNICODE etc.) by the user? I haven't change any code at all but the unit that does the TProcess call is being compiled with: {$Mode TP}{$I-} {$modeswitch exceptions} {$R+} James ___ fpc-pascal mai

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

2024-12-20 Thread James Richters via fpc-pascal
I just tried compiling with the march version with -CpCOREI -OpCOREI -CfAVX2 -dMT and it worked as expected... so it's not the processor change that caused the issue. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freep

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

2024-12-20 Thread James Richters via fpc-pascal
>I assume that it is exactly the same source on exactly the same system with exactly the same compiler configuration. Well... you would think I would be compiling it the same way, but I'm not... I thought I was be when I went to verify that I found that I did make a change. I was compiling with:

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

2024-12-20 Thread James Richters via fpc-pascal
ogram that has the TProcess call in it. James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt via fpc-pascal Sent: Friday, December 20, 2024 8:23 AM To: Karoly Balogh via fpc-pascal Cc: Michael Van Canneyt Subject: Re: [fpc-pascal] Is there a recent change to TProc

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

2024-12-20 Thread Marco van de Voort via fpc-pascal
Op 20-12-2024 om 14:44 schreef Tomas Hajny via fpc-pascal: I am not aware of any such changes, but given your remark about the meaning of 3F, the latter seems a likely explanation. Could it be due to a change of compilation mode (DELPHIUNICODE etc.) by the user? I assume that it is exac

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

2024-12-20 Thread Tomas Hajny via fpc-pascal
On 2024-12-20 14:22, Michael Van Canneyt via fpc-pascal wrote: 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

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 t

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

2024-12-20 Thread Karoly Balogh via fpc-pascal
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 to #$3F (and > > all similar codes in the range

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

2024-12-20 Thread Michael Van Canneyt via fpc-pascal
On Thu, 19 Dec 2024, James Richters via fpc-pascal wrote: I am using ProgProcess to execute a program with data passed as parameters. I'm adding the parameters with this: ProgProcess := TProcess.Create(nil); ProgProcess.Executable := 'cmd.exe'; ProgProcess.Parameters.

Re: [fpc-pascal] Is there a Pos() function for TBytes?

2023-04-20 Thread Alexey Torgashin via fpc-pascal
function PosInBytes(const Pattern: byte; Target: TBytes): integer; Let's use IndexByte standard procedure here? Maybe also in the 1st overloaded code too? Alex ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cg

Re: [fpc-pascal] Is there a Pos() function for TBytes?

2023-04-20 Thread Bo Berglund via fpc-pascal
On Thu, 20 Apr 2023 08:40:48 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: >> I found this page: >> https://www.freepascal.org/docs-html/rtl/system/copy.html >> >> Here there is also reference to the other functions for strings: >> Delete (string and dyn array) >> Copy(string and d

Re: [fpc-pascal] Is there a Pos() function for TBytes?

2023-04-19 Thread Michael Van Canneyt via fpc-pascal
On Thu, 20 Apr 2023, Bo Berglund via fpc-pascal wrote: I am transferring data via serial comm and they wind up inside a TBytes dyn array. Now I want to easily find a certain pattern of bytes inside that array, but how? I have a cludge that does not feel right but works and I want to get it r

Re: [fpc-pascal] Is Online Package Manager not a standard part of Lazarus?

2023-03-24 Thread Bo Berglund via fpc-pascal
On Fri, 24 Mar 2023 22:20:15 +0100, Bo Berglund via fpc-pascal wrote: >I thought Online Package Manager was standard since it appeared in all earlier >installs I have made both using Sourceforge Windows installers or via sources >downloaded with SVN or Git and building on Linux. > >Now I have tes

Re: [fpc-pascal] Is there any benefit for a Delphi/Free Pascal/Lazarus programmer to build a C DLL in debug mode ?

2022-08-30 Thread Luca Olivetti via fpc-pascal
El 29/8/22 a les 9:50, Skybuck Flying via fpc-pascal ha escrit: Is there any benefit for a Delphi or Free Pascal/Lazarus programmer to build a C DLL in debug mode ? yes, because I found out that you can debug it right inside lazarus, almost like pascal code. Bye -- Luca _

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Hairy Pixels via fpc-pascal
> On May 29, 2022, at 2:26 PM, Martin Frb via fpc-pascal > wrote: > > Actually afaik you push an extra param in for "is nested" as well as for "of > object. > > But for "of object" it is the first param, for "is nested" it is the last. So you can cast nested or object to each other and the

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Hairy Pixels via fpc-pascal
> On May 29, 2022, at 2:26 PM, Martin Frb via fpc-pascal > wrote: > > Actually afaik you push an extra param in for "is nested" as well as for "of > object. > > But for "of object" it is the first param, for "is nested" it is the last. Then “references to” is the only universal function poi

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-29 Thread Martin Frb via fpc-pascal
On 29/05/2022 07:21, Michael Van Canneyt via fpc-pascal wrote: On Sun, 29 May 2022, Hairy Pixels via fpc-pascal wrote: I’ve been testing out all the different function pointer types in FPC to test their compatibility with each other and I noticed that “is nested” can accept a global function

Re: [fpc-pascal] "Is nested" vs "of object" compatibility with global functions

2022-05-28 Thread Michael Van Canneyt via fpc-pascal
On Sun, 29 May 2022, Hairy Pixels via fpc-pascal wrote: I’ve been testing out all the different function pointer types in FPC to test their compatibility with each other and I noticed that “is nested” can accept a global function declaration but “of object” can not. What is the reason for thi

Re: [fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Dec 2021 17:07:55 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Mi., 22. Dez. 2021, 16:08: > >> So I wonder if there is a value range limitation for the arguments inside >> an in >> command like: >> if a in [x..y] then >> > >The right side of the in-o

Re: [fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Sven Barth via fpc-pascal
Bo Berglund via fpc-pascal schrieb am Mi., 22. Dez. 2021, 16:08: > So I wonder if there is a value range limitation for the arguments inside > an in > command like: > if a in [x..y] then > The right side of the in-operator is a set constructor. And sets may only contain up to 256 values. (Though

Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-06 Thread Allan via fpc-pascal
On Mon, 04 Oct 2021 17:51:58 +0200 Bo Berglund via fpc-pascal wrote: > But on the lazarus list I post and I do not see my message at all in > the list, even now after so long time has passed. > But when I sent the same post via email to the list then it appeared > almost directly. And following t

Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread Bo Berglund via fpc-pascal
On Mon, 04 Oct 2021 06:45:23 -0400, DougC via fpc-pascal wrote: > On Mon, 04 Oct 2021 04:36:32 -0400 Bo Berglund via fpc-pascal > wrote > > >>On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal > wrote: >> >>>I have tried to post to the

Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread DougC via fpc-pascal
I received the original posting and also the second direct attempt. Doug C. On Mon, 04 Oct 2021 04:36:32 -0400 Bo Berglund via fpc-pascal wrote On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal wrote: >I have tried to pos

Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread Bo Berglund via fpc-pascal
On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal wrote: >I have tried to post to the list (via GMane) but it does not come through. >And the last post made seems to be on 2021-10-01... >Is the list itself down or is there a GMane problem? Seems to be GMane... I repeated the posting

Re: [fpc-pascal] is this a bug?

2021-06-03 Thread duilio foschi via fpc-pascal
>Did Delphi use an auto-commit mode I did some tests in old Delphi5: an exception is raised if I try to modify the sql text of an open query. This would help a lot in fpc, too. Either the query is automatically closed or an exception should be raised. The current behaviour of TQuery is error pr

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-10 Thread Florian Klämpfl via fpc-pascal
> Am 10.03.2021 um 10:28 schrieb Bernd Mueller via fpc-pascal > : > > On 3/5/21 6:22 PM, Florian Klämpfl via fpc-pascal wrote: > >> It is not expected that it works as RiscV support is still work in >> progress, but it should work ;) I'll look into it. > > Thank you. For me, the compiler for

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-10 Thread Bernd Mueller via fpc-pascal
On 3/5/21 6:22 PM, Florian Klämpfl via fpc-pascal wrote: It is not expected that it works as RiscV support is still work in progress, but it should work ;) I'll look into it. Thank you. For me, the compiler for RV32I/RV32IMAC works already pretty well. Regards, Bernd. ___

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-06 Thread Florian Klämpfl via fpc-pascal
Am 06.03.21 um 13:56 schrieb Bernd Mueller via fpc-pascal: I saw your changes in revision 48881, downloaded latest trunk, compiled with make crosszipinstall CPU_TARGET=riscv32 OS_TARGET=embedded SUBARCH=rv32i but the problem remains: make[4]: Entering directory '/home/bernd/fpc/fpc331/48882/src

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-06 Thread Bernd Mueller via fpc-pascal
I saw your changes in revision 48881, downloaded latest trunk, compiled with make crosszipinstall CPU_TARGET=riscv32 OS_TARGET=embedded SUBARCH=rv32i but the problem remains: make[4]: Entering directory '/home/bernd/fpc/fpc331/48882/src/rtl/embedded' /bin/mkdir -p /home/bernd/fpc/fpc331/48882/sr

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-05 Thread Florian Klämpfl via fpc-pascal
Am 05.03.21 um 10:41 schrieb Bernd Mueller via fpc-pascal: Hello, I would like to use fpc to program a FPGA softcore RISC-V cpu. The softcore has the RV32I instruction set implemented. I modified the Makefile in rtl/embedded, so that the known SUBARCH rv32imac replaces the option -Cprv32imac wi

Re: [fpc-pascal] Is lazarus list down?

2020-10-25 Thread Bo Berglund via fpc-pascal
On Thu, 22 Oct 2020 18:26:22 +0200, Winfried Bartnick via fpc-pascal wrote: > >Am 22.10.20 um 16:17 schrieb Bo Berglund via fpc-pascal: >> I have not gotten any new posts on the Lazarus list since 2 weeks now >> (last seen was Oct 8th). >> Has it been stopped or is there a Gmane connectivity issu

Re: [fpc-pascal] Is lazarus list down?

2020-10-22 Thread Winfried Bartnick via fpc-pascal
Am 22.10.20 um 16:17 schrieb Bo Berglund via fpc-pascal: I have not gotten any new posts on the Lazarus list since 2 weeks now (last seen was Oct 8th). Has it been stopped or is there a Gmane connectivity issue? I am communicating with the free-pascal.general list and lazarus via Gmane news int

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 00:08:01 +0200, Bo Berglund via fpc-pascal wrote: >But I would like to enumerate the subdirectories themselves (without >the content). Turns out that there is a procedure FindAllDirectories() in fileutil... It does exactly what I need. :) I wonder why Google failed to bring

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 10:51:37 +0200, Bart via fpc-pascal wrote: >On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal > wrote: > >> But I would like to enumerate the subdirectories themselves (without >> the content). > >Take a look at how FindAllFiles is implemented. >It should be relative

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bart via fpc-pascal
On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal wrote: > But I would like to enumerate the subdirectories themselves (without > the content). Take a look at how FindAllFiles is implemented. It should be relatively easy to modify it so that it discards files and only adds folders to t

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2020-02-22 Thread jollytall
Yes, but it is not only for him. Anyone might find this link even now. Btw. I even mistyped the link, what is github.com/zsoltszakaly/tensorflowforpascal. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2020-02-16 Thread Bo Berglund via fpc-pascal
On Thu, 13 Feb 2020 09:36:46 -0700 (MST), jollytall wrote: >I have just completed the first release of such an interface for TensorFlow. >You can check it at github.com/tensorflowforpascal. Did you notice the date of the previous post in this thread? It was done 2017-12-07 -- Bo Berglund Deve

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2020-02-13 Thread jollytall
I have just completed the first release of such an interface for TensorFlow. You can check it at github.com/tensorflowforpascal. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Is forum down?

2020-02-02 Thread Michael Van Canneyt
On Mon, 3 Feb 2020, Zamrony P. Juhara via fpc-pascal wrote: From my location https://forum.lazarus.freepascal.org/ takes long time to load or sometime timeout. Does it happens to anyone? Something similar happened to the main FPC server. We have the impression that the servers are under a D

Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Michael Van Canneyt
On Sat, 4 Jan 2020, Winfried Bartnick wrote: The result is true, but the date is nonsense: ShowMessage(BoolToStr(TryStrToDate('1',DT),True) + lineEnding + formatdatetime('dd.mm.',DT)); results in /True// / /01.01.2020/ Not what I exspected. But exactly what it is supposed to ret

Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Winfried Bartnick
Am 04.01.20 um 18:14 schrieb Michael Van Canneyt: On Sat, 4 Jan 2020, Gabor Boros wrote: Hi All, var   DT:TDateTime; begin   Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. This is normal. FPC accepts more than Delphi,

Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Michael Van Canneyt
On Sat, 4 Jan 2020, Gabor Boros wrote: Hi All, var DT:TDateTime; begin Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. This is normal. FPC accepts more than Delphi, see the documentation: https://www.freepascal.org/

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Christo
On Thu, 2018-07-05 at 00:20 +0200, Tomas Hajny wrote: > If you look into fpmake.pp in the same directory, you'll find out that the > proper command line for calling data2inc should be: > > data2inc -b -s fpcmake.ini fpcmake.inc fpcmakeini > > (add paths as necessary, e.g. the path to data2inc if

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Tomas Hajny
On Thu, July 5, 2018 00:20, Tomas Hajny wrote: > On Wed, July 4, 2018 22:42, Christo wrote: >> On Wed, 2018-07-04 at 11:57 +0200, Tomas Hajny wrote: Oops, sorry, sent the previous e-mail too early by mistake. :-( . . > Invoking of data2inc from fpmake may not be as mature though (as suggested >

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Tomas Hajny
On Wed, July 4, 2018 22:42, Christo wrote: > On Wed, 2018-07-04 at 11:57 +0200, Tomas Hajny wrote: >> The .ini file should be translated to .inc using the data2inc utility >> (included with FPC as well) and then incorporated into the binary. This >> should happen automatically, but let's make sure

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Christo
On Wed, 2018-07-04 at 11:57 +0200, Tomas Hajny wrote: > The .ini file should be translated to .inc using the data2inc utility > (included with FPC as well) and then incorporated into the binary. This > should happen automatically, but let's make sure it was the case for you > as well. The .inc fil

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Tomas Hajny
On Wed, July 4, 2018 10:50, Christo Crause wrote: > On Wed, Jul 4, 2018 at 9:21 AM, Tomas Hajny wrote: >> On Wed, July 4, 2018 07:53, Christo wrote: >> > Any hints on how to compile and use fpcmake so that changes in the ini >> > file ends up in the generated MakeFile? >> >> I assume that you upda

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Christo Crause
On Wed, Jul 4, 2018 at 9:21 AM, Tomas Hajny wrote: > On Wed, July 4, 2018 07:53, Christo wrote: > > Any hints on how to compile and use fpcmake so that changes in the ini > > file ends up in the generated MakeFile? > > I assume that you updated fpcmake.ini in /fpcsrc/utils/fpcm/ (or without > /fp

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-04 Thread Tomas Hajny
On Wed, July 4, 2018 07:53, Christo wrote: . . > I'm trying to move Florian's changes in the target-subdir branch to trunk. > I've updated fpcmake.ini, but when I compile fpcmake and execute > ./fpcmake -Tall -w Makefile.fpc the regenerated MakeFile doesn't have any of > the modifications in fpcm

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-07-03 Thread Christo
On Sun, 2017-12-03 at 19:05 +0100, Florian Klämpfl wrote: > Am 29.11.2017 um 06:36 schrieb Christo: > > > > On Sun, 2017-11-26 at 17:19 +0100, Michael Ring wrote: > > > > > > I am looking for an easy way to have all cortex-m compilers available > > > at the same time to be able to do automated bu

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-02-23 Thread Michael Ring
I am doing something similar to what you are doing, see below I also needed to create a softlink so that fpc can call ppcrossarm, it expects to call ppcarm By using 'INSTALL_UNITDIR' there is no need to copy files at the end. You will need to do a little tweak in fpc.cfg, after this it is

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-02-22 Thread Christo Crause
Michael, I have just noticed a target-subdir folder in svn.freepascal.org/svn/fpc/branches/target-subdir/ It seems as if rev 30766 contains Florian's first modifications to implementation the subarch subfolder option. On 4 Dec 2017 9:23 am, "Michael Ring" wrote: Hi Florian! I would like to wor

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-02-22 Thread Christo
On Mon, 2017-12-04 at 08:22 +0100, Michael Ring wrote: > Hi Florian! > > I would like to work on this patch, can you share it with me? > > Thank you, > > Michael > > > Am 03.12.17 um 19:05 schrieb Florian Klämpfl: > > > > Am 29.11.2017 um 06:36 schrieb Christo: > > > > > > On Sun, 2017-11-26

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Sven Barth via fpc-pascal
Am 03.02.2018 10:08 schrieb "Michael Van Canneyt" : On Sat, 3 Feb 2018, Sven Barth via fpc-pascal wrote: Am 03.02.2018 09:11 schrieb "Michael Van Canneyt" : > > > > On Sat, 3 Feb 2018, Dennis Poon wrote: > > > >>> If your objects inherit from TComponent and you use published properties >>> you

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Michael Van Canneyt
On Sat, 3 Feb 2018, Sven Barth via fpc-pascal wrote: Am 03.02.2018 09:11 schrieb "Michael Van Canneyt" : On Sat, 3 Feb 2018, Dennis Poon wrote: If your objects inherit from TComponent and you use published properties you can use the streaming screen of the RTL. I am curious how TCompon

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Sven Barth via fpc-pascal
Am 03.02.2018 09:11 schrieb "Michael Van Canneyt" : On Sat, 3 Feb 2018, Dennis Poon wrote: >> >> If your objects inherit from TComponent and you use published properties >> you can use the streaming screen of the RTL. >> >> I am curious how TComponent save and restore TnotifyEvent fields. Can

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-03 Thread Michael Van Canneyt
On Sat, 3 Feb 2018, Dennis Poon wrote: If your objects inherit from TComponent and you use published properties you can use the streaming screen of the RTL. I am curious how TComponent save and restore TnotifyEvent fields. Can you explain a little bit? Roughly: If you put a method in

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-02 Thread Dennis Poon
Sven Barth via fpc-pascal wrote: Am 02.02.2018 17:53 schrieb "Dennis" >: I have list of objects which contains references to other objects. I need to save all these objects to harddisk to be restored on a latter day. I know how to stream the data

Re: [fpc-pascal] Is there a smart way to save/restore NotifyEvents and objects?

2018-02-02 Thread Sven Barth via fpc-pascal
Am 02.02.2018 17:53 schrieb "Dennis" : I have list of objects which contains references to other objects. I need to save all these objects to harddisk to be restored on a latter day. I know how to stream the data fields of these objects to a TFileStream but the tricky part is these how to restore

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2017-12-17 Thread Christo
On Mon, 2017-12-04 at 08:22 +0100, Michael Ring wrote: > Hi Florian! > > I would like to work on this patch, can you share it with me? > Am 03.12.17 um 19:05 schrieb Florian Klämpfl: > > > > Am 29.11.2017 um 06:36 schrieb Christo: > > > > > > On Sun, 2017-11-26 at 17:19 +0100, Michael Ring wrot

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Bo Berglund
On Thu, 14 Dec 2017 19:54:49 +0100, Bo Berglund wrote: > if AProcess.RunCommand(Command, Parameters.Strings, sTmp) then > begin > SvnData.Text := sTmp); > Result := true; > end; > It works when this is changed to: var Params: array of string; ... begin SetLength(Params

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Giuliano Colla
Il 14/12/2017 18:02, Bo Berglund ha scritto: But*sending email* is not the problem, I have done this in many applications using Indy TIdSMTP. Instead it is getting data out oof svn and formatting these in a friendly looking email to be sent You might find useful guidelines in the fpcup an

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Bo Berglund
On Thu, 14 Dec 2017 19:37:55 +0100 (CET), mar...@stack.nl (Marco van de Voort) wrote: >In our previous episode, Bo Berglund said: >> But *sending email* is not the problem, I have done this in many >> applications using Indy TIdSMTP. Instead it is getting data out oof >> svn and formatting these i

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Marco van de Voort
In our previous episode, Bo Berglund said: > But *sending email* is not the problem, I have done this in many > applications using Indy TIdSMTP. Instead it is getting data out oof > svn and formatting these in a friendly looking email to be sent Actually process.runcommand was developed to get

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Paul Breneman
On 12/14/2017 12:02 PM, Bo Berglund wrote: On Thu, 14 Dec 2017 10:26:22 +, Mark Morgan Lloyd wrote: On 14/12/17 10:00, Adriaan van Os wrote: Bo Berglund wrote: Now I am looking at the same problem for svn and this time I need it> to be cross-platform, hence using FPC.> Before I start on

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Bo Berglund
On Thu, 14 Dec 2017 10:26:22 +, Mark Morgan Lloyd wrote: >On 14/12/17 10:00, Adriaan van Os wrote: >> Bo Berglund wrote: >>> Now I am looking at the same problem for svn and this time I need it> >>> to be cross-platform, hence using FPC.> Before I start on it myself I >>> wonder if someone

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Mark Morgan Lloyd
On 14/12/17 10:00, Adriaan van Os wrote: Bo Berglund wrote: Now I am looking at the same problem for svn and this time I need it> to be cross-platform, hence using FPC.> Before I start on it myself I wonder if someone here has already> written such a program for svn and if so, if it is availab

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Bo Berglund
On Thu, 14 Dec 2017 10:49:32 +0100, Adriaan van Os wrote: >Bo Berglund wrote: > >> Now I am looking at the same problem for svn and this time I need it >> to be cross-platform, hence using FPC. >> Before I start on it myself I wonder if someone here has already >> written such a program for svn a

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Adriaan van Os
Bo Berglund wrote: Now I am looking at the same problem for svn and this time I need it to be cross-platform, hence using FPC. Before I start on it myself I wonder if someone here has already written such a program for svn and if so, if it is available as open source? I use sendmail

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-12-07 Thread Dennis Poon
schuler wrote: "> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. " Hello, this is schuler!!! You can find the most recent project update here: https://forum.lazarus.freepascal.org/index.php/topic,39049.0.html There are many neural network layers

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-12-06 Thread schuler
"> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. " Hello, this is schuler!!! You can find the most recent project update here: https://forum.lazarus.freepascal.org/index.php/topic,39049.0.html There are many neural network layers (convolution, maxp

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2017-12-03 Thread Michael Ring
Hi Florian! I would like to work on this patch, can you share it with me? Thank you, Michael Am 03.12.17 um 19:05 schrieb Florian Klämpfl: Am 29.11.2017 um 06:36 schrieb Christo: On Sun, 2017-11-26 at 17:19 +0100, Michael Ring wrote: I am looking for an easy way to have all cortex-m compil

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2017-12-03 Thread Florian Klämpfl
Am 29.11.2017 um 06:36 schrieb Christo: > On Sun, 2017-11-26 at 17:19 +0100, Michael Ring wrote: >> I am looking for an easy way to have all cortex-m compilers available >> at the same time to be able to do automated building/testing > > There is a similar problem with the AVR target having severa

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2017-11-28 Thread Christo
On Sun, 2017-11-26 at 17:19 +0100, Michael Ring wrote: > I am looking for an easy way to have all cortex-m compilers available > at the same time to be able to do automated building/testing There is a similar problem with the AVR target having several subarchitectures.  One option I think is to ha

Re: [fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?

2017-11-28 Thread Christo Crause
On 28 Nov 2017 9:04 PM, "Роман via fpc-pascal" < fpc-pascal@lists.freepascal.org> wrote: > Can I run SortAndInitialize before 'main' without additional user actions? Maybe not exactly what you want but you could probably add the SortAndInitialize procedure to the initialization section of a new un

Re: [fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?

2017-11-28 Thread Sven Barth via fpc-pascal
Am 28.11.2017 20:04 schrieb "Роман via fpc-pascal" < fpc-pascal@lists.freepascal.org>: 'Initialization' sections are executed in poorly predictable order, so I want to partially order them according to some form of explicit prioritization and execute before control flow enters main block (so I won

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread Dennis Poon
Michael Van Canneyt wrote: On Sat, 28 Oct 2017, Dennis wrote: or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a python server along side my Free Pascal program. Or, is it

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread leledumbo via fpc-pascal
> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread Michael Van Canneyt
On Sat, 28 Oct 2017, Dennis wrote: or even neural network libraries written in Pascal? I know there are many python interfaces/libraries but I hope to use Pascal entirely so that I don't have to run a python server along side my Free Pascal program. Or, is it possible to call python from

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 10:37 PM, Graeme Geldenhuys wrote: > On 2017-04-29 21:18, Marcos Douglas B. Santos wrote: >> My concern is make my code cross between FPC and Delphi, but loosing some >> feature that exists only in FPC. > > My question is, why do you need Delphi at all? FPC can target more

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Graeme Geldenhuys
On 2017-04-29 21:23, Marco van de Voort wrote: > The proponents of mode objfpc make a big deal out of the differences, but > IMHO it is mostly nitpicking. And worse unnecesarily incompatible > nitpicking. For many Delphi is simply not needed, so why would anybody then opt for something other than

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Graeme Geldenhuys
On 2017-04-29 21:18, Marcos Douglas B. Santos wrote: > My concern is make my code cross between FPC and Delphi, but loosing some > feature that exists only in FPC. My question is, why do you need Delphi at all? FPC can target more platforms that Delphi, support is better, bugs actually get fixed,

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 7:21 PM, Sven Barth via fpc-pascal wrote: >> If I remember well, PChar and even String is different between these >> modes, right? The compiler will convert strings between them or this >> is not a problem? Even using LCL? > > The default string type depends on two differen

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Sven Barth via fpc-pascal
Am 29.04.2017 23:56 schrieb "Marcos Douglas B. Santos" : > > On Sat, Apr 29, 2017 at 5:23 PM, Marco van de Voort wrote: > > > > In our previous episode, Marcos Douglas B. Santos said: > > > I would like to write some packages that should work in FPC and Delphi. > > > I know that I will need to use

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Sven Barth via fpc-pascal
Am 29.04.2017 22:19 schrieb "Marcos Douglas B. Santos" : > > > On Sat, Apr 29, 2017 at 2:10 PM, Michael Van Canneyt < mich...@freepascal.org> wrote: >> >> >>> Hi, >>> >>> I would like to write some packages that should work in FPC and Delphi. >>> I know that I will need to use {mode delphi} to do t

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 5:23 PM, Marco van de Voort wrote: > > In our previous episode, Marcos Douglas B. Santos said: > > I would like to write some packages that should work in FPC and Delphi. > > I know that I will need to use {mode delphi} to do that. > > > > My ask is: Is there some disadvant

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marco van de Voort
In our previous episode, Marcos Douglas B. Santos said: > I would like to write some packages that should work in FPC and Delphi. > I know that I will need to use {mode delphi} to do that. > > My ask is: Is there some disadvantages using this mode? > > I mean, is there something that we only can

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 2:10 PM, Michael Van Canneyt wrote: > > Hi, >> >> I would like to write some packages that should work in FPC and Delphi. >> I know that I will need to use {mode delphi} to do that. >> >> My ask is: Is there some disadvantages using this mode? >> >> I mean, is there someth

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Michael Van Canneyt
On Sat, 29 Apr 2017, Marcos Douglas B. Santos wrote: Hi, I would like to write some packages that should work in FPC and Delphi. I know that I will need to use {mode delphi} to do that. My ask is: Is there some disadvantages using this mode? I mean, is there something that we only can do in

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-12-06 Thread Sven Barth
On 21.11.2016 02:05, Le Duc Hieu wrote: > Is there any entry on Mantis for me to keep track of this bug status? I've fixed that bug now (it did already work in mode Delphi by the way), so now you can use this: === code begin === type generic TGList = record public type PGList = ^speciali

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-21 Thread Sven Barth
Am 21.11.2016 08:33 schrieb "Le Duc Hieu" : > > Is there any entry on Mantis for me to keep track of this bug status? No, because I just noticed that there is one when testing for your question ;) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-20 Thread Le Duc Hieu
Is there any entry on Mantis for me to keep track of this bug status? Thanks. On Sun, Nov 20, 2016 at 6:03 PM, Sven Barth wrote: > Am 20.11.2016 08:31 schrieb "Le Duc Hieu" : > > > > Here is the complete snippet that i wanted to create > > > > > > Type > > generic PGList = ^specialize TGList;

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-20 Thread Sven Barth
Am 20.11.2016 08:31 schrieb "Le Duc Hieu" : > > Here is the complete snippet that i wanted to create > > > Type > generic PGList = ^specialize TGList; > > generic TGList = record > data: T; > next: specialize PGList > end; You'll need to use nested types (they require modeswitch adva

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-19 Thread Le Duc Hieu
Here is the complete snippet that i wanted to create Type generic PGList = ^specialize TGList; generic TGList = record data: T; next: specialize PGList end; On Fri, Nov 18, 2016 at 11:11 PM, Le Duc Hieu wrote: > Hi, > > I'm trying to write a generic linked-list without the use of

Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-17 Thread Vasudev Ram
Vasudev Ram writes: > > Thank you. > > >>> > >>> Is there a way to interact with this list via the Web? > > > > http://blog.gmane.org/gmane.comp.compilers.free-pascal.general > > > > > > Jonas > > > Please ignore. Testing posting to the list via the Gmane gateway. _

Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-13 Thread leledumbo
> Is there a way to interact with this list via the Web? Alternatively (if you prefer forum-like interface): http://free-pascal-general.1045716.n5.nabble.com/ -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Is-there-a-way-to-interact-with-this-list-via-the-Web

Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-13 Thread Vasudev Ram
Thank you. On 7/14/16, Jonas Maebe wrote: > Vasudev Ram wrote: >> Sorry, forgot to put the subject line earlier, so re-sending. >> >> On 7/14/16, Vasudev Ram wrote: >>> Hi list, >>> >>> Is there a way to interact with this list via the Web? > > http://blog.gmane.org/gmane.comp.compilers.free-pa

  1   2   3   4   5   >