[fpc-pascal] JSONStringToString question

2021-03-13 Thread Bart via fpc-pascal
misunderstand the purpose of this function or is this a bug? -- Bart ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > > Do I misunderstand the purpose of this function or is this a bug? > > Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so I can test if there ar regressi

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 1:49 PM Bart wrote: > Do you know if we have a test suite for this function, so I can test > if there ar regressions when I try to fix it? Found it already. I think I have a fix, will report it. -- Bart _______ fpc-

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: > I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. -- Bart ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: > Fixed. Thanks for the patch. > There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2 fixes branch? --

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Bart via fpc-pascal
On Fri, Mar 19, 2021 at 7:14 PM Michael Van Canneyt via fpc-pascal wrote: > > Done: 0038639 , but i am not able to set the severity to 'feature' > > Hm. Strange. I did it for you. This has been disabled for "normal" reporters, since too many reporters marked thei

Re: [fpc-pascal] Hide warning number

2021-03-25 Thread Bart via fpc-pascal
On Thu, Mar 25, 2021 at 8:08 PM Ryan Joseph via fpc-pascal wrote: > Is there a way to hide a warning for all files from the command line? The > "not inlined" warnings (6058) are too numerous to even be useful anymore so > I'd like to disable it. From my fpc.cfg: #Do

[fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-03 Thread LacaK via fpc-pascal
. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-06 Thread LacaK via fpc-pascal
can not help? -Laco. ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-06 Thread LacaK via fpc-pascal
which code is realy not needed ... WPO in this regard can not help? No. There is no way for WPO to know what side effects the initialisation of those variables could have. Jonas _______ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Directory Tree

2021-04-06 Thread Bart via fpc-pascal
On Tue, Apr 6, 2021 at 12:29 PM James Richters via fpc-pascal wrote: > Or Am I going to be better off going graphical with Lazarus for something > like this? TShellTreeView in Lazarus should do exactly what you want. It's not console though.

[fpc-pascal] Version 3.2.2 changes

2021-04-08 Thread Peter via fpc-pascal
is out, so I assume the contents are pretty much fixed now. Regards, Peter _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Interruption handling on i8086

2021-04-10 Thread Guillermo via fpc-pascal
ínez keyb16.inc Description: Binary data keyb32.inc Description: Binary data ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Interruption handling on i8086

2021-04-10 Thread Guillermo via fpc-pascal
El Sat, 10 Apr 2021 11:35:18 +0200 Marco Borsari via fpc-pascal escribió: > Il 09/04/2021 19:56, Guillermo via fpc-pascal ha scritto: > > Hi pascaloids, > > > > I'm doing DOS development for fun and, after installing the compiler > > (was quite hard), I'

Re: [fpc-pascal] Interruption handling on i8086

2021-04-10 Thread Guillermo via fpc-pascal
El Sat, 10 Apr 2021 10:42:12 +0200 Christo Crause escribió: > On Sat, Apr 10, 2021 at 10:14 AM Guillermo via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > Hi pascaloids, > > > > I'm doing DOS development for fun and, after installing the com

Re: [fpc-pascal] Interruption handling on i8086

2021-04-11 Thread Guillermo via fpc-pascal
Hi, Tomas. El Sat, 10 Apr 2021 16:05:28 +0200 Tomas Hajny via fpc-pascal escribió: > > Hi, > > I believe that you need to add the "far" modifier after the > "interrupt" - at least this has been the case with TP/BP and is > probably needed at least for some

Re: [fpc-pascal] Interruption handling on i8086

2021-04-11 Thread Guillermo via fpc-pascal
> Sven Regards, Guillermo "Ñuño" Matínez _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Inline assembler m32 source operand

2021-04-12 Thread LacaK via fpc-pascal
causes A/V when executed, because only low 32bit of address is taken (x86_64): 00010020C4D9 c46279181425b0432700 vbroadcastss 0x2743b0,%xmm10 Thanks -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org

Re: [fpc-pascal] Abstract classes ignored

2021-04-18 Thread Bart via fpc-pascal
On Sun, Apr 18, 2021 at 7:56 PM Travis Siegel via fpc-pascal wrote: >... but the last time I asked them > about pricing, they told me it'd cost $1000 for just delphi 7, and that > only costed $995 when it first came out, nearly 20 years ago. Wow! Long time ago, I bought Delphi2 (

Re: [fpc-pascal] Mustache templates implementation

2021-04-20 Thread leledumbo via fpc-pascal
o packages/fcl-mustache, in case someone > else > has a need for it. Now thank you for this, I'll be sure to check it out to replace dmustache. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___________ fpc-pascal maillist - fpc-pascal@l

[fpc-pascal] non-virtual class methods called from virtual regular method

2021-04-28 Thread LacaK via fpc-pascal
possible only by using class functions (getters), where descendant class getter hides parents getter? -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] non-virtual class methods called from virtual regular method

2021-04-29 Thread LacaK via fpc-pascal
Dňa 29.4.2021 o 9:26 Michael Van Canneyt via fpc-pascal napísal(a): On Thu, 29 Apr 2021, LacaK via fpc-pascal wrote: Hi *, consider the following example T1 = class   class procedure CP1;   procedure P1; virtual; end; T2 = class(T1)   class procedure CP1; end; procedure T1.P1; begin

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-12 Thread wkitty42--- via fpc-pascal
On 5/11/21 5:35 PM, Bo Berglund via fpc-pascal wrote: Of course, but as I said the basic mail sending is working I just have a hard time understanding how to add file attachments. It would not have worked unless the proper uses are added to the pas file and also the laz_synapse package set as

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

2021-05-12 Thread Brian via fpc-pascal
On 5/12/21 3:51 PM, Ryan Joseph via fpc-pascal wrote: On May 12, 2021, at 12:30 PM, Ralf Quint via fpc-pascal wrote: Thought this was kind of interesting, though it leaves short of mentioning the later Object Pascal evolution and thus Delphi and FreePascal... Isn't Free Pasca

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-13 Thread gebylist via fpc-pascal
Dne 13.05.2021 v 12:38 Bo Berglund via fpc-pascal napsal(a): > I found more reading and now I am a bit confused again: > When using MIME, why do you need to also set the recipient, sender etc for the > SMTP object when it is already part of the MIME object? > Or does SMTP dis

Re: [fpc-pascal] FTP support gone - switch to HTTP ?

2021-05-17 Thread wkitty42--- via fpc-pascal
On 5/17/21 9:57 AM, Michael Van Canneyt via fpc-pascal wrote: I know that Firefox will follow suit really soon (if they haven't already). it has... in version 88.0.0 IIRC... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-17 Thread gebylist via fpc-pascal
Dne 17.05.2021 v 22:06 Bo Berglund via fpc-pascal napsal(a): > > And that is what I have done, it is listed in uses of my mailsupport source > file > as: > uses >Classes, >SysUtils, >smtpsend, >ssl_openssl, //<= Here >synautil, >mimemes

[fpc-pascal] Option type

2021-06-01 Thread denisgolovan via fpc-pascal
anybody suggest some sane workaround for the problem? -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Option type

2021-06-01 Thread denisgolovan via fpc-pascal
ll like to avoid that. Ideally TOption type should allow any type (primitives, strings, objects, class instances, etc). -- Regards, Denis Golovan _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Option type

2021-06-01 Thread denisgolovan via fpc-pascal
initialized value. On drop/free it would insert check: if IsSome then finalize(some); > Use Nullable.TNullable. Thanks. It's something close to what I need. -- Regards, Denis Golovan _______ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Option type

2021-06-02 Thread denisgolovan via fpc-pascal
opped and copied and assigned despite conceptually being empty. -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-06-05 Thread gebylist via fpc-pascal
Dne 05.06.2021 v 22:04 Bo Berglund via fpc-pascal napsal(a): > Yes, I ditched Indy10 for smtp emailing and instead used Synapse 40.1 > from the OnLinePackageManager in Lazarus. I am not sure what is mean by "Synapse 40.1" and how OnlinePackageManager working, because Synapse i

[fpc-pascal] Linux Yad

2021-06-06 Thread Brian via fpc-pascal
/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Trying to update to: Xcode 12.5, FPC 3.2.2

2021-06-08 Thread conlin664 via fpc-pascal
NilnocCalc.build/Objects-normal/x86_64/NilnocCalc.o' An error occurred while linking NilnocCalc.pas(24,2) Error: Error while linking NilnocCalc.pas(24,2) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted ___ fpc-pasca

[fpc-pascal] Management operators memleaks

2021-06-11 Thread denisgolovan via fpc-pascal
quite large test case. -- Regards, Denis Golovan _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Management operators memleaks

2021-06-13 Thread denisgolovan via fpc-pascal
Could anybody reply? Am I doing something wrong? Are management operators supported or not? -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Management operators memleaks

2021-06-14 Thread denisgolovan via fpc-pascal
olovan _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
chał. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
W dniu 2021-06-14 o 21:27, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/classesh.inc?revision=49038&

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
W dniu 2021-06-14 o 22:25, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: W dniu 2021-06-14 o 21:27, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of

Re: [fpc-pascal] TRegistry documentation

2021-06-15 Thread Bart via fpc-pascal
On Tue, Jun 15, 2021 at 2:44 PM Jean SUZINEAU via fpc-pascal wrote: > I'm not sure which one will best match the DWord type. You'll have to use the Integer / Int64 variant and hardcats it to DWord/QWord. IIRC this is Delphi compatible. Of course it is peanuts to implement Read

Re: [fpc-pascal] TRegistry documentation

2021-06-16 Thread Bart via fpc-pascal
On Wed, Jun 16, 2021 at 9:08 AM James Richters via fpc-pascal wrote: > > >You can have a look too at TRegDataType type, it seems there is nothing > >special for DWord. > > > > I got the list of functions you mentioned in Lazarus.. Here are all the ones > that can

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-16 Thread LacaK via fpc-pascal
. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-16 Thread LacaK via fpc-pascal
, which involve for example TComponent (and interfaces) ... (see also thread "Minimal size of compiled library (DLL under Windows)" in this list from April 2021) L. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.free

Re: [fpc-pascal] TRegistry documentation

2021-06-16 Thread Bart via fpc-pascal
On Wed, Jun 16, 2021 at 2:21 PM Jean SUZINEAU via fpc-pascal wrote: > I guess that what was meaning Bart by hardcat is that you need to > transtype the result this way: > var dw: DWord; > begin > dw:= DWord( Registry.ReadInteger(...)) ; Indeed. This is a lossless opera

Re: [fpc-pascal] TRegistry documentation

2021-06-16 Thread Bart via fpc-pascal
On Wed, Jun 16, 2021 at 2:26 PM Jean SUZINEAU via fpc-pascal wrote: > I think there is a way to do this with a single program. Using Lazarus IDE I tried to set Execution level to "requireAdministrator", but then the program simply would not run (it would not ask for the admin pas

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-16 Thread Bart via fpc-pascal
On Wed, Jun 16, 2021 at 5:14 PM Bo Berglund via fpc-pascal wrote: > My use case here is that I created a Windows version of Linux "uptime" by > starting in Lazarus with a new Project and selecting Program. Choose Simple Program from that dialog. No uses clause at all, so eve

Re: [fpc-pascal] Trying to update to: Xcode 12.5, FPC 3.2.2

2021-06-16 Thread conlin664 via fpc-pascal
ompilation aborted make[3]: *** [ppc] Error 1 make[2]: *** [cycle] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.x86_64-iphonesim] Error 2 On Wednesday, June 9, 2021, 11:50:08 AM PDT, Jonas Maebe via fpc-pascal wrote: On 09/06/2021 01:15, conlin664 via fpc-pasc

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-19 Thread wkitty42--- via fpc-pascal
On 6/19/21 9:40 AM, Bo Berglund via fpc-pascal wrote: Strange name of a function, though, is that needed? idk why the specific name was selected but you need some easy way to add leading zeros if you want them... some might complain about the conversion from integer to string, though... i&#x

[fpc-pascal] Linker error on simple program (windows)

2021-06-23 Thread Bart via fpc-pascal
ay if I remove the inline directive from the function definition in the interface section, or if I also declare the other function (which gives the linker error) in the interface section. -- Bart ___________ fpc-pascal maillist - fpc-pascal@lists.fr

[fpc-pascal] Fwd: Linker error on simple program (windows)

2021-06-24 Thread Bart via fpc-pascal
age) -- Bart -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2021-07-10 Thread Peter via fpc-pascal
On 09/07/2021 23:56, Ryan Joseph via fpc-pascal wrote: On Jul 9, 2021, at 11:40 AM, Wayne Sherman via fpc-pascal wrote: Current standings at the time of this video Iterations per sec: Ada: 67 Pascal: 143 Fastest language: 7301 Slowest language: 1 So Pascal failed pretty bad it looks like

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

2021-07-10 Thread Guillermo via fpc-pascal
ri, 9 Jul 2021 10:40:55 -0700 Wayne Sherman via fpc-pascal escribió: > If you are a speed geek, you will probably be interested in this. > > What is the FASTEST Computer Language? 45 Languages Tested! (E01) > https://www.youtube.com/watch?v=tQtFdsEcK_s > > Current standings at t

Re: [fpc-pascal] Trying to update to: Xcode 12.5, FPC 3.2.2

2021-07-19 Thread conlin664 via fpc-pascal
s in the clang call.. can you point me in the right direction  ? like where is -T iphonesim processed ? thanks john On Wednesday, June 16, 2021, 10:43:33 AM PDT, conlin664 via fpc-pascal wrote: Jonas, thanks but I'm still a little stuck.I only do this kind of thing once every

[fpc-pascal] How to use XMLCfg?

2021-08-06 Thread Abuy via fpc-pascal
tor from constructor TXMLConfig.Create. Does this unit & older XMLCfg actually works? _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use XMLCfg?

2021-08-09 Thread Abuy via fpc-pascal
In Windows 7 same code & same version of Lazarus & program works fine. On 08.08.2021 17:23, Vojtěch Čihák via fpc-pascal wrote: Hi, Laz2_ are UTF8 versions and they works well. Create(nil); means that instance has no owner. (I have Lazarus 2.3.0, it is not on line 165 here). You

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread Bart via fpc-pascal
On Wed, Aug 11, 2021 at 11:37 PM Michael Van Canneyt via fpc-pascal wrote: > As a programmer, switching version systems should be a no-brainer. My brain begs to differ... -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread ezrashumla--- via fpc-pascal
j have a problem with 3.2.2  write and writeln  halts the program -Original Message- From: Dmitry Boyarintsev via fpc-pascal To: FPC-Pascal users discussions Cc: Dmitry Boyarintsev ; Bo Berglund Sent: Wed, Aug 11, 2021 11:57 pm Subject: Re: [fpc-pascal] How to get fpc and lazarus

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-11 Thread LacaK via fpc-pascal
ted question: in SVN was possible to checkout specific sub-directory (for example if I am interested in fcl-db package only I checkedout only this sub-directory). Is it possible with gitlab? Or I must clone whole https://gitlab.com/freepascal.org/fpc/source ? Thanks ... -Laco. _________

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-12 Thread Bart via fpc-pascal
On Thu, Aug 12, 2021 at 6:27 AM Michael Van Canneyt via fpc-pascal wrote: > >> As a programmer, switching version systems should be a no-brainer. > > > > My brain begs to differ... > > Well, sorry to say, but I don't understand this. > > What's so

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-12 Thread wkitty42--- via fpc-pascal
On 8/11/21 4:22 PM, Michael Van Canneyt via fpc-pascal wrote: On Wed, 11 Aug 2021, Bo Berglund via fpc-pascal wrote: echo "Downloading version $FPCVER of FPC" cd "$FPCDIR" svn co https://svn.freepascal.org/svn/fpc/tags/$FPCTAG/ $FPCVER # Get sources git clone https://gitla

[fpc-pascal] Conditional compilation using {$IFOPT ...} and {$IF OPTION(...)}

2021-08-25 Thread LacaK via fpc-pascal
to do it with {$IFOPT R+D+}? Thanks -Laco. _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Raise exception in libray which will not halt host application

2021-08-25 Thread LacaK via fpc-pascal
(without SysUtils). If there is Windows call which can be used it is sufficient, as library is Win64 only. Thanks -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Raise exception in libray which will not halt host application

2021-08-26 Thread LacaK via fpc-pascal
Thank you for both answers! L. On Thu, 26 Aug 2021, LacaK via fpc-pascal wrote: Hello, is there way how to raise exception in library without using SysUtils? Raise TMyObject.Create() Where TMyObject does not descend from Exception. Sysutils is needed for the definition of the Exception

Re: [fpc-pascal] function const default argument

2021-08-26 Thread Santi via fpc-pascal
El 26/08/2021 a las 10:00, Ondrej Pokorny via fpc-pascal escribió: On 26.08.2021 09:40, Santiago A. via fpc-pascal wrote: const  DefaultDelta:extended = 1E-8; function F(const x:extended; const delta:extended=DefaultDelta):extended; function G(const x:extended; const delta:extended

Re: [fpc-pascal] Bookmark, TBookmarkStr, TBytes and BytesOf

2021-08-26 Thread LacaK via fpc-pascal
s-html/rtl/sysutils/stringof.html L. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bookmark, TBookmarkStr, TBytes and BytesOf

2021-08-26 Thread Santi via fpc-pascal
El 26/08/2021 a las 11:58, Michael Van Canneyt via fpc-pascal escribió: On Thu, 26 Aug 2021, Santiago A. via fpc-pascal wrote: Hello: Freepascal 3.2.0. Windows 7-32bits TMyObject=class   private     fDset:TDataset;    function GetBookmark:TBookmarkStr; ... end; function

Re: [fpc-pascal] Bookmark, TBookmarkStr, TBytes and BytesOf

2021-08-26 Thread Santi via fpc-pascal
El 26/08/2021 a las 11:58, Michael Van Canneyt via fpc-pascal escribió: On Thu, 26 Aug 2021, Santiago A. via fpc-pascal wrote: Hello: Freepascal 3.2.0. Windows 7-32bits TMyObject=class   private     fDset:TDataset;    function GetBookmark:TBookmarkStr; ... end; function

Re: [fpc-pascal] Raise exception in libray which will not halt host application

2021-08-26 Thread LacaK via fpc-pascal
Am 26.08.2021 um 10:10 schrieb LacaK via fpc-pascal: Thank you for both answers! Please note that you won't be able to catch such an exception with the type from within the application, e.g.: === code begin === try   SomeLibraryFunction; except   on e: TMyObject do Whatever;  

Re: [fpc-pascal] Raise exception in libray which will not halt host application

2021-08-26 Thread LacaK via fpc-pascal
use raise TObject.Create; Thanks L.* * _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bookmark, TBookmarkStr, TBytes and BytesOf

2021-08-26 Thread Santi via fpc-pascal
El 26/08/2021 a las 13:05, Michael Van Canneyt via fpc-pascal escribió: On Thu, 26 Aug 2021, Santi via fpc-pascal wrote: El 26/08/2021 a las 11:58, Michael Van Canneyt via fpc-pascal escribió: On Thu, 26 Aug 2021, Santiago A. via fpc-pascal wrote: Hello: Freepascal 3.2.0. Windows 7

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

2021-08-29 Thread Guillermo via fpc-pascal
Fri, 27 Aug 2021 16:01:38 -0400 joseph turco via fpc-pascal escribió: > Hello all, > > I am a new programmer, and I thought I'd learn Pascal. I saw that with > FreePascal, most users are using Lazarus. I don't want to use this and > would rather work in the console,

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

2021-08-29 Thread Bart via fpc-pascal
On Sat, Aug 28, 2021 at 3:21 PM joseph turco via fpc-pascal wrote: > I am a new programmer, and I thought I'd learn Pascal. You're very welcome. > I saw that with FreePascal, most users are using Lazarus. I don't want to use > this and would rather work in the con

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

2021-08-29 Thread geneb via fpc-pascal
On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote: On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal declaimed the following: question is, id like to use the free pascal IDE, and learn the more modern(?) form of pascal, but i cannot find a resource for beginners that

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

2021-08-30 Thread geneb via fpc-pascal
- Go Collimated or Go Home. Some people collect things for a hobby. Geeks collect hobbies. ScarletDME - The red hot Data Management Environment A Multi-Value database for the masses, not the classes. http://scarlet.deltasoft.com - Get it _today_! ______________

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

2021-08-30 Thread wkitty42--- via fpc-pascal
On 8/30/21 8:52 AM, geneb via fpc-pascal wrote: [*] For those not aware of him, Jeff Duntemann was a huge figure "back in the day" in Turbo/Borland Pascal circles.  His books are phenomenal. i have and still use several of his books... i think the first one we got was "Comple

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

2021-08-30 Thread geneb via fpc-pascal
On Mon, 30 Aug 2021, wkitty42--- via fpc-pascal wrote: On 8/30/21 8:52 AM, geneb via fpc-pascal wrote: [*] For those not aware of him, Jeff Duntemann was a huge figure "back in the day" in Turbo/Borland Pascal circles.  His books are phenomenal. i have and still use several of

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

2021-08-31 Thread geneb via fpc-pascal
On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote: Plain old FreePascal is approachable. Object Pascal is deeply intimidating, and I'm not sure it's worth the entry price. Liam, I think you're mixing the language with the framework. I'll be the first person to agree

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

2021-08-31 Thread geneb via fpc-pascal
On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote: For those of us who don't, though, docs that focus on doing that aren't much help. Agreed! I am only really interested in FPC for one thing -- targeting Ultibo, a bare-metal runtime for the Raspberry Pi. I'm interest

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

2021-08-31 Thread Bart via fpc-pascal
On Tue, Aug 31, 2021 at 12:23 PM Liam Proven via fpc-pascal wrote: > I've got Lazarus running here and it's more of the same. But I > discovered that I have `fpc` in the terminal and I had a "Hello world" > program running in 30 seconds there... something that

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

2021-09-02 Thread Peter via fpc-pascal
https://castle-engine.io/modern_pascal_introduction.html You can also download it as a single PDF. g. Thanks Dennis. Very useful refresher! Cheers, Pete ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org

[fpc-pascal] Conversion from C to Pascal - Left bit shift

2021-09-02 Thread LacaK via fpc-pascal
operations works on 64 bits or this only affect arithmetic operations like multiply?) Assembler suggests that shl works on 32 bits: shl    %cl,%r11d -Laco. ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bi

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

2021-09-02 Thread geneb via fpc-pascal
On Thu, 2 Sep 2021, Peter via fpc-pascal wrote: https://castle-engine.io/modern_pascal_introduction.html You can also download it as a single PDF. g. Thanks Dennis. Very useful refresher! You're welcome! (My name is Gene. :D ) g. -- Proud owner of F-15C 80-0007 http://www.f15si

Re: [fpc-pascal] Conversion from C to Pascal - Left bit shift

2021-09-02 Thread LacaK via fpc-pascal
arithmetic operations like multiply?) Assembler suggests that shl works on 32 bits: shl    %cl,%r11d -Laco. ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Conversion from C to Pascal - Left bit shift

2021-09-03 Thread LacaK via fpc-pascal
if E1 is LongWord on 64 bit platform result is still LongWord?) Case (E1*x) shl E2 is subject to native integer promotion I guess? L. ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2021-09-03 Thread Peter via fpc-pascal
which was checked. Cheers, Pete _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Inactive account on GitLab

2021-09-09 Thread denisgolovan via fpc-pascal
Hi all Could anybody look at GitLab MageSlayer account? I can neither login nor change my password. Maybe my mail has not been transferred? -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] Inactive account on GitLab

2021-09-09 Thread denisgolovan via fpc-pascal
> FPC's git and issue trackers are hosted on Gitlab itself, we have no > authority to do > user management. Ok. I managed to sign up and login. Does it mean my old issues cannot be linked to my GitLab account? -- Regards, Denis Golovan ________

Re: [fpc-pascal] Inactive account on GitLab

2021-09-10 Thread denisgolovan via fpc-pascal
h a full text search. Same problem - my todo list is empty. I can find my issues by those "indirect" ways though :) -- Regards, Denis Golovan _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] How to create AnsiString with specific code page?

2021-09-15 Thread Abuy via fpc-pascal
I need string with Windows-1251. Tried var msg: AnsiString(1251) but this does not work. What I am doing now is var msg: rawbytestring; begin SetCodePage(msg, 1251, True); end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] How to create AnsiString with specific code page?

2021-09-15 Thread Bart via fpc-pascal
On Wed, Sep 15, 2021 at 12:14 PM Abuy via fpc-pascal wrote: > I need string with Windows-1251. Tried var msg: AnsiString(1251) but > this does not work. What I am doing now is This should work type StringCP1251 = AnsiString(1251) var S: StringCP1251; --

Re: [fpc-pascal] How to create AnsiString with specific code page?

2021-09-15 Thread Bart via fpc-pascal
On Wed, Sep 15, 2021 at 12:32 PM Bart wrote: > This should work > > type > StringCP1251 = AnsiString(1251) That should be type StringCP1251 = type AnsiString(1251); -- Bart _______ fpc-pascal maillist - fpc-pascal@lists.freepasc

[fpc-pascal] Code page for the Windows event viewer

2021-09-15 Thread Abuy via fpc-pascal
e:=ltsystem; logger.active:=true; Write('Code page is '); WriteLn(StringCodePage(msg)); logger.Info(msg); logger.Destroy; WriteLn('End'); end. OS: English Windows XP. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Code page for the Windows event viewer

2021-09-15 Thread Abuy via fpc-pascal
UnicodeString change only look of symbols (instead of quastion marks this — Іівівйц ГђВ№ вфівфъ2цву йцуцйівів). No BOM. File is UTF-8. No command line parameters. On 15.09.2021 16:53, Tomas Hajny via fpc-pascal wrote

[fpc-pascal] String.Split(const Separators: array of Char; Options: TStringSplitOptions)

2021-09-16 Thread Bart via fpc-pascal
; ... SA := S.Split([#0..#32],TStringSplitOptions.ExcludeEmpty); test.pas(236,59) Error: Incompatible type for arg no. 2: Got "TStringSplitOptions", expected "Char". I feel I must be blind... -- Bart _______ fpc-pascal mai

Re: [fpc-pascal] Code page for the Windows event viewer

2021-09-16 Thread Abuy via fpc-pascal
No change. On 16.09.2021 13:28, Tomas Hajny via fpc-pascal wrote: On 2021-09-15 16:09, Abuy via fpc-pascal wrote: UnicodeString change only look of symbols (instead of quastion marks this — Іівівйц ГђВ№ вфівфъ2цву йцуцйівÑВ

Re: [fpc-pascal] FreePascal and MySQL 8.0

2021-09-20 Thread antlists via fpc-pascal
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 install for MySQL 8.0.  I do see that there is an open

Re: [fpc-pascal] FreePascal and MySQL 8.0

2021-09-21 Thread LacaK via fpc-pascal
ql L. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <mailto:fpc-pascal@lists.freepascal.org> wrote: >I have

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. A

<    1   2   3   4   5   6   7   8   9   10   >