Re: [fpc-pascal] Delphi generics bug?

2020-01-14 Thread Ryan Joseph via fpc-pascal
> On Jan 14, 2020, at 8:04 PM, Sven Barth via fpc-pascal > wrote: > > It's a bug because constraints should not be allowed in definitions, only in > declarations. > ok, I'll file a report if you want me to. I'll just leave it as it is for the consta

Re: [fpc-pascal] Delphi generics bug?

2020-01-14 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Di., 14. Jan. 2020, 14:31: > > > > On Jan 14, 2020, at 8:04 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > It's a bug because constraints should not be allowed in definitions, > only

Re: [fpc-pascal] Delphi generics bug?

2020-01-14 Thread Ryan Joseph via fpc-pascal
> On Jan 14, 2020, at 11:44 PM, Sven Barth via fpc-pascal > wrote: > > Indeed. And yes, please file a bug. > https://bugs.freepascal.org/view.php?id=36584 Regards, Ryan Joseph _______ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] TProcess and zombie processes in *nix systems

2020-01-21 Thread Sven Barth via fpc-pascal
. Indeed, doesn't seem to be that easy: https://stackoverflow.com/questions/27361227/how-to-prevent-creation-of-zombie-processes-while-using-fork-and-exec-in-lin Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-29 Thread Sven Barth via fpc-pascal
cal.org/view.php?id=14886 ) Regards, Sven > ___________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
? Thank you. Regards, –Mr Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Custom operator

2020-02-01 Thread Sven Barth via fpc-pascal
Mr Bee via fpc-pascal schrieb am So., 2. Feb. 2020, 02:11: > Hi all, > > Besides overloading available operators, could we make our own custom > operator(s) in FPC? > > For example, I want to use ∑ to sum array values? Also other Unicode > characters such as ≥, ≤, ±, ≠, et

[fpc-pascal] Interface type error

2020-02-01 Thread Ryan Joseph via fpc-pascal
Regards, Ryan Joseph _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
, it’s all right then. Thank you. –Mr Bee Pada Minggu, 2 Februari 2020 08.32.23 WIB, Sven Barth via fpc-pascal menulis: Mr Bee via fpc-pascal schrieb am So., 2. Feb. 2020, 02:11: Hi all, Besides overloading available operators, could we make our own custom operator(s) in FPC? For

Re: [fpc-pascal] Interface type error

2020-02-02 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 2. Feb. 2020, 03:37: > Why doesn't this compile? IClassName2 descends from IClassName1 so > shouldn't TClassName be compatible with IClassName1? > > > > {$mode objfpc} > {$int

Re: [fpc-pascal] Interface type error

2020-02-02 Thread Ryan Joseph via fpc-pascal
> On Feb 2, 2020, at 3:23 PM, Sven Barth via fpc-pascal > wrote: > > As I had explained in the other thread some months ago interfaces in Object > Pascal mean literally that the type can be cast to the specified interfaces. > Parent interfaces are *not* part of this. If

Re: [fpc-pascal] Interface type error

2020-02-02 Thread Sven Barth via fpc-pascal
Am 02.02.2020 um 12:49 schrieb Ryan Joseph via fpc-pascal: On Feb 2, 2020, at 3:23 PM, Sven Barth via fpc-pascal wrote: As I had explained in the other thread some months ago interfaces in Object Pascal mean literally that the type can be cast to the specified interfaces. Parent interfaces

Re: [fpc-pascal] PPCJVM and Android Bionic compatibility question

2020-02-02 Thread Sven Barth via fpc-pascal
Am 02.02.2020 um 14:06 schrieb Mgr. Janusz Chmiel via fpc-pascal: Dear specialists here, How complex would be to recode Free Pascal compiler for ARM and ARM64 Bit so it would be fully compatible with Android Bionic library, so it would be executed as A external app from some Android app

Re: [fpc-pascal] Compiler treatment of dotted reference in class property

2020-02-03 Thread Sven Barth via fpc-pascal
Howard Page-Clark via fpc-pascal schrieb am Mo., 3. Feb. 2020, 11:22: > FPC 3.0.4 compiles this code excerpt without a murmur: > > == code == > > {$mode objfpc}{$H+} > > type > >TSheetInfo = record > name: String; > tab: String; > title: St

[fpc-pascal] $modeswitch from command line

2020-02-03 Thread Mr Bee via fpc-pascal
Hi all, Is there a way to enable a mode switches from fpc command line? Thank you. Regards, ~Bee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] $modeswitch from command line

2020-02-03 Thread Sven Barth via fpc-pascal
Am 03.02.2020 um 23:19 schrieb Mr Bee via fpc-pascal: Hi all, Is there a way to enable a mode switches from fpc command line? Yes, using -M, however these are discarded as soon as a $Mode directive is read (just like any $Mode directive resets any $Modeswitch directive). Regards, Sven

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Mr Bee via fpc-pascal
that using the feature. I prefer to put it in a config file or call it from command line, as default setting, so my code is cleaner from such things. Is it possible? Thank you. Regards, –Mr Bee Pada Selasa, 4 Februari 2020 13.42.10 WIB, Sven Barth via fpc-pascal menulis: Am

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread zh loza via fpc-pascal
that would affect all the units. On Tue, Feb 4, 2020 at 10:41 AM Mr Bee via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > As mention in the email title, what I meant is {$modeswitch} not {$mode} > as explain here: > https://www.freepascal.org/docs-html/prog/progsu105.html

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Mattias Gaertner via fpc-pascal
On Tue, 4 Feb 2020 08:41:22 + (UTC) Mr Bee via fpc-pascal wrote: > As mention in the email title, what I meant is {$modeswitch} not > {$mode} as explain > here: https://www.freepascal.org/docs-html/prog/progsu105.html > > For example, if I want to use extended record in objf

Re: [fpc-pascal] $modeswitch from command line

2020-02-05 Thread Mr Bee via fpc-pascal
| | | | A Alphabetical listing of command line options | | | Pada Rabu, 5 Februari 2020 02.30.04 WIB, Jonas Maebe menulis: On 04/02/2020 10:06, Mattias Gaertner via fpc-pascal wrote: > As Sven explained a $mode resets all modeswitches. > What you need is a switch to

[fpc-pascal] Array of const: docs

2020-02-09 Thread Alexey Tor. via fpc-pascal
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Array of const: docs

2020-02-09 Thread Sven Barth via fpc-pascal
Alexey Tor. via fpc-pascal schrieb am So., 9. Feb. 2020, 17:45: > https://www.freepascal.org/docs-html/ref/refsu69.html > Remark: Note that there is no support for QWord arguments in array of > const. This is for Delphi compatibility, and the compiler will ignore > any resulting

Re: [fpc-pascal] How to rebuild an fpc package

2020-02-11 Thread Christo Crause via fpc-pascal
On Tue, Feb 11, 2020 at 3:23 PM Luis - SoftSAT Sistemas via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Looking at unit search path the compiler are looking at "sources" dir > instead of "units" dir with the compiled units and i dont know how to fix

Re: [fpc-pascal] How to rebuild an fpc package

2020-02-11 Thread Christo Crause via fpc-pascal
his, I rather suggest an easier fix: just recompile everything with "make all install" from the base of the fpc source folder. This way the makefiles do all the tracking of where compiled units are. The few minutes this will take should be much less than the time spent trying to fi

Re: [fpc-pascal] How to rebuild an fpc package

2020-02-11 Thread Sven Barth via fpc-pascal
Christo Crause via fpc-pascal schrieb am Di., 11. Feb. 2020, 19:42: > On Tue, Feb 11, 2020 at 4:57 PM Luis - SoftSAT Sistemas < > l...@softsatsistemas.com.br> wrote: > >> > You are using relative paths in -Fu and your current folder is >> c:\lazarus\fpc\3.0.4\sourc

[fpc-pascal] Freepascal/Lazarus forum and Lazarus website outage wrap-up

2020-02-12 Thread Marc Weustink via fpc-pascal
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FreeVision Resources?

2020-02-13 Thread Sven Barth via fpc-pascal
l bug tracker). I think saving and restoring streams should work as the textmode IDE uses that as well. Can you please provide an example that fails? Then we might be able to help you. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OpenCV

2020-02-13 Thread Sven Barth via fpc-pascal
ve to adjust the generated code for FPC. Regards, Sven > ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OpenCV

2020-02-14 Thread Henry Vermaak via fpc-pascal
r me. In the long run a class-based binding would be great to have. I've been meaning to look into this, but digging through thousands of lines of python is not my idea of fun. Henry _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://l

Re: [fpc-pascal] OpenCV

2020-02-14 Thread Sven Barth via fpc-pascal
bably the reason they don't have it yet: no version got far enough... Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FreeVision Resources?

2020-02-16 Thread Sven Barth via fpc-pascal
can be implemented with a GUI just as much as much as it can with a TUI. In fact I know a company that simply turned their TUI-based entry masks into GUI-based entry masks. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2020-02-16 Thread Bo Berglund via fpc-pascal
rglund Developer in Sweden _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] [OT] inline procedures in TP 7.0

2020-02-16 Thread Anton Shepelev via fpc-pascal
al take care of them, perhaps enveloping each expansion of an inline procedure into a POPs and PUSHes? -- Please, do not forward replies to my e-mail. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] [OT] inline procedures in TP 7.0

2020-02-17 Thread Anton Shepelev via fpc-pascal
must take utmost care to preserve every single register when using inline procedures and functions? -- Please, do not forward replies to the list to my e-mail. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-17 Thread Bo Berglund via fpc-pascal
On Sun, 16 Feb 2020 23:36:09 -0300, Fabio Luis Girardi via fpc-pascal wrote: >I'll test it tomorrow. > >Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl >escreveu: > >> Am 01.02.20 um 18:13 schrieb je...@j-software.dk: >> > Agreed, the rtl should defini

Re: [fpc-pascal] Linker switch

2020-02-18 Thread Sven Barth via fpc-pascal
- via fpc-pascal schrieb am Di., 18. Feb. 2020, 13:16: > Hi, > > A while ago (5 years) I made an application where I had to add -k-l > to the command-line the compile that application. > Is there a way to add this in the source ? > I spent a good time to find out h

Re: [fpc-pascal] ptop and comma.

2020-02-24 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Mo., 24. Feb. 2020, 02:10: > Tomas Hajny-2 wrote > > The difference between your version and the original one is that the > > original finishes the program with some error code thus allowing some > > error checking in case the program was ca

Re: [fpc-pascal] Extended type under Win64

2020-02-26 Thread Sven Barth via fpc-pascal
denisgolovan via fpc-pascal schrieb am Di., 25. Feb. 2020, 23:01: > Hi all > > I'm trying to get an idea if Extended float is/can actually be 80bit? > I have FPC built under Linux x64 and it works fine (co-processor command > are actually used). > > But I haven't

Re: [fpc-pascal] Extended type under Win64

2020-02-26 Thread Sven Barth via fpc-pascal
not recommended, because Microsoft does not recommend it (not to mention that it isn't even remotely tested as much as the normal Win64 target). Regards, Sven > ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Property write access on records

2020-03-01 Thread Ryan Joseph via fpc-pascal
eSize: TVec2i; function GetTableSize: TVec2i; property TableSize: TVec2i read GetTableSize; end; var sheet: TSheet; begin // why isn't this an error? sheet.x := 1; end; Regards, Ryan Joseph _______ fpc-pascal maillist -

Re: [fpc-pascal] Property write access on records

2020-03-02 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 2. März 2020, 22:47: > In the snippet below why isn't it an error to write to a field of the > read-only property? I was hoping this would give me some type safety but it > just writes to a temp variable and does nothing. Not very helpfu

Re: [fpc-pascal] Error on https://www.freepascal.org/download.var

2020-03-03 Thread Sven Barth via fpc-pascal
hould now point to download.html. Regards, Sven > ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Objective-C mode switch overrides open arrays?

2020-03-04 Thread Ryan Joseph via fpc-pascal
// Incompatible types: got "{Open} Array Of NSObject" expected "NSFastEnumerationProtocol" for obj in input do ; end; begin end. Regards, Ryan Joseph _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.fr

[fpc-pascal] Passing static arrays to open arrays

2020-03-04 Thread Ryan Joseph via fpc-pascal
st); end. Regards, Ryan Joseph _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Property write access on records

2020-03-04 Thread Ryan Joseph via fpc-pascal
changing this behavior? Regards, Ryan Joseph ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Cannot find system type "__m64"

2020-03-05 Thread Ryan Joseph via fpc-pascal
I'm continuing this from the bug tracker. Also please note that for some reason the mail list server has stopped sending me replies to gmail so I need to look at https://lists.freepascal.org/pipermail/fpc-pascal/ for replies until this get fixed. Maybe time to get rid of gmail? My privat

Re: [fpc-pascal] Property write access on records

2020-03-05 Thread Ryan Joseph via fpc-pascal
> On Mar 5, 2020, at 2:24 PM, Ryan Joseph wrote: > > Can we consider changing this behavior? from https://lists.freepascal.org/pipermail/fpc-pascal/2020-March/057434.html On 05/03/2020 08:24, Ryan Joseph via fpc-pascal wrote: > Yes, it's a temporary variable but doesn&#

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-05 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Fr., 6. März 2020, 06:57: > I'm continuing this from the bug tracker. Also please note that for some > reason the mail list server has stopped sending me replies to gmail so I > need to look at https://lists.freepascal.org/pipermail/fpc-pascal/

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-05 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Fr., 6. März 2020, 06:57: > I'm continuing this from the bug tracker. Also please note that for some > reason the mail list server has stopped sending me replies to gmail so I > need to look at https://lists.freepascal.org/pipermail/fpc-pascal/

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-06 Thread Ryan Joseph via fpc-pascal
> On Mar 6, 2020, at 2:04 PM, Sven Barth via fpc-pascal > wrote: > > Yes, that is the problem. When Florian had merged the SIMD intriniscs branch > those types were enabled, but they weren't ready yet. Thus he disabled them > later on again (a day or two later). If

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-06 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Fr., 6. März 2020, 16:12: > > > > On Mar 6, 2020, at 2:04 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > Yes, that is the problem. When Florian had merged the SIMD intriniscs > branc

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-06 Thread Sven Barth via fpc-pascal
schrieb am Fr., 6. März 2020, 15:51: > On 3/6/20 9:17 AM, Ryan Joseph via fpc-pascal wrote: > > Ok, I got this reply finally so maybe something else went wrong. I'm > tempting > > to try another account with some free email service because Gmail never > shows >

Re: [fpc-pascal] Property write access on records

2020-03-06 Thread Sven Barth via fpc-pascal
Am 06.03.2020 um 03:17 schrieb Ryan Joseph via fpc-pascal: On Mar 5, 2020, at 2:24 PM, Ryan Joseph wrote: Can we consider changing this behavior? from https://lists.freepascal.org/pipermail/fpc-pascal/2020-March/057434.html On 05/03/2020 08:24, Ryan Joseph via fpc-pascal wrote: Yes

Re: [fpc-pascal] Property write access on records

2020-03-06 Thread Ryan Joseph via fpc-pascal
function GetPoint: TPoint; property point: TPoint read GetPoint; end; function TThing.GetPoint: TPoint; begin result := m_point; end; var t: TThing; begin // no error! t.point.width := 0; end. Regards, Ryan Joseph ___ fpc

Re: [fpc-pascal] Property write access on records

2020-03-07 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Sa., 7. März 2020, 05:18: > > > > On Mar 7, 2020, at 5:15 AM, Sven Barth > wrote: > > > > I've found two bug reports related to this (I searched for "property" > and only those reports that are neither closed nor

Re: [fpc-pascal] Property write access on records

2020-03-07 Thread Ryan Joseph via fpc-pascal
Ryan Joseph _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] modeswitch multihelpers precedence problem

2020-03-09 Thread Anthony Walter via fpc-pascal
he one coming from the last matching unit in the uses clause. Multiple type helpers should follow this same rule. Please discuss and if we all agree I will file this as a bug in mantis. Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Ryan Joseph via fpc-pascal
> On Mar 10, 2020, at 11:57 AM, Anthony Walter via fpc-pascal > wrote: > > To demonstrate, if I have MyUnit.pas that defines a string type helper with > EndsWith() and an IntToStr() function then consider the following code: > > program Test; > > uses >

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Mattias Gaertner via fpc-pascal
On Tue, 10 Mar 2020 00:57:12 -0400 Anthony Walter via fpc-pascal wrote: >[...] > What should happen is that both examples use the function from the > last unit in the uses clause. Yes, that's how Pascal usually works and so it works in pas2js. Strange that fpc does it the other w

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Mattias Gaertner via fpc-pascal
d method. In Delphi the type helper of the last unit wins. So I would expect the same for multi type helpers. Mattias _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Di., 10. März 2020, 09:03: > > > > On Mar 10, 2020, at 11:57 AM, Anthony Walter via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > To demonstrate, if I have MyUnit.pas that defines a string type helper

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Di., 10. März 2020, 08:11: > > > On Tue, 10 Mar 2020, Anthony Walter via fpc-pascal wrote: > > > I started adding {$modeswitch multihelpers} to some of my code and > noticed > > a problem. It would seem that the SysUtils unit is defini

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Anthony Walter via fpc-pascal
ng this problem, but for my work habits multiple type helpers brings in the most optimal way of handling things, and again this is in my opinion. Anthony ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Anthony Walter via fpc-pascal
Stdreamer, you are wrong. The last unit take precedence. Please test to verify. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Anthony Walter via fpc-pascal
Marco, now that's some good insight. I believe you are correct. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] modeswitch multihelpers precedence problem

2020-03-10 Thread Ryan Joseph via fpc-pascal
iteln('IntToStr - umultiplehelpers_precedence1'); end; end. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Mi., 11. März 2020, 11:16: > Hello. > > Compiling that code with fpc 3.2.0 gives the warning that follows: > > ---> if (kind <> tabulatorkindty(-1)) --> gives now the warning: > > "msedrawtext.pas(1115,48) Warning: range ch

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Mi., 11. März 2020, 12:51: > > Other question relative to Warnings: > > How to do this: > > tdataevent(de_afterapplyupdate) > > where TDataEvent is defined as > > TDataEvent = (deFieldChange, deRecordChange, deDataSetChange, >

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Mi., 11. März 2020, 13:25: > By the way, huh, yes, if I am totally sure that the code is safe, I would > be > happy to know the code-number of those Warning and disable it. > > Of course in last resort (no time to be lazy). > You can find out

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread Sven Barth via fpc-pascal
schrieb am Mi., 11. März 2020, 16:37: > On 3/11/20 11:35 AM, fredvs via fpc-pascal wrote: > >> f (kind in tabulatorkindty) then > > > > Yes, I like it! > > > > But, sadly, the compiler no. > > > > "Error: Operator is not overloaded"... &

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0 (fredvs)

2020-03-14 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Sa., 14. März 2020, 13:01: > So, thanks for the tip, "kind" seems indeed initialized with first item. > Please note that this is only true for global variables and fields of classes. And it's not initialized with the first item, but w

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-14 Thread Andrew Hall via fpc-pascal
as still using 3.0.4). Regards, > On 13 Mar 20, at 10:11 , fredvs via fpc-pascal > wrote: > > I vote for keeping type enum + adding at end "tak_nil" in array + > initialize "kind := tak_nil". > ________________

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0 (fredvs)

2020-03-14 Thread Sven Barth via fpc-pascal
Am 14.03.2020 um 17:18 schrieb fredvs via fpc-pascal: Hi Sven, sorry to come back, (dont forget I am a enum-guru now). But to be totally logic, in the previous code: if kind = tabulatorkindty(0) then Should it not be something illegal because of definition: tabulatorkindty = (tak_none := 1

[fpc-pascal] Error format in trunk changed (again)

2020-03-14 Thread Ryan Joseph via fpc-pascal
thing up myself? GLPT_IPhone.inc:97: error: 20: Identifier idents no member "touchID" Main.pas:88:1: error: Identifier not found "f" Regards, Ryan Joseph ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https:/

[fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
f ShortInt" expected "Array[0..2] Of LongInt" data := [1,2,3]; end. Regards, Ryan Joseph ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Killing the mail list

2020-03-15 Thread Ryan Joseph via fpc-pascal
onally I really like the format used in forum.sublimetext.com which is from www.discourse.org. Regards, Ryan Joseph _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
> On Mar 15, 2020, at 8:53 PM, Howard Page-Clark via fpc-pascal > wrote: > > > With recent FPCs you can however do this: > > program test; > var > data: array[0..2] of Integer; > tmp: array of Integer = Nil; > begin > tmp := [1,2,3]; > Mov

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 15. März 2020, 15:33: > It's 2020 and the mail list is starting to really show its age. I don't > get first messages from gmail and my personal web host is whitelisted, > messages bounce when I use the wrong account by accident, h

Re: [fpc-pascal] Killing the mail list

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

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 15. März 2020, 19:58: > > > > On Mar 15, 2020, at 8:53 PM, Howard Page-Clark via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > > > With recent FPCs you can however do this: > > > &g

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Ryan Joseph via fpc-pascal
> On Mar 16, 2020, at 12:36 AM, fredvs via fpc-pascal > wrote: > > Hello. > > You may use http://free-pascal-general.1045716.n5.nabble.com/ > > This forum is an archive for the mailing list > fpc-pascal@lists.freepascal.org > > Fre;D Looks like everyone

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
6.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pass open array to static array?

2020-03-16 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 16. März 2020, 07:33: > Ok, that makes sense now. Dynamic arrays can't be passed to static arrays. > I > remember when I tried to make aligned dynamic arrays I got to look around > in > the code and it seems plausible you could jus

Re: [fpc-pascal] Killing the mail list

2020-03-17 Thread Ryan Joseph via fpc-pascal
Regards, Ryan Joseph ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] sizeof TTypeKind?

2020-03-20 Thread Ryan Joseph via fpc-pascal
oseph _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-20 Thread Sven Barth via fpc-pascal
Am 20.03.2020 um 08:32 schrieb Ryan Joseph via fpc-pascal: Are there any functions in the RTL to get the sizeof the type specified in TTypeKind? https://www.freepascal.org/docs-html/rtl/typinfo/ttypekind.html I'm truing to use record RTTI and I needed to know the size of the field i

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-20 Thread Ryan Joseph via fpc-pascal
_ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-20 Thread Anthony Walter via fpc-pascal
case TTypeKind of ... _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-21 Thread Ryan Joseph via fpc-pascal
> On Mar 21, 2020, at 9:39 AM, Ryan Joseph via fpc-pascal > wrote: > > I'm going to loop through the fields of the record and get the size of each > field so I can serialize the record. Am I not on the right track? No answers on this so I'm thinking maybe I

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-21 Thread Ryan Joseph via fpc-pascal
> On Mar 21, 2020, at 10:05 AM, Anthony Walter via fpc-pascal > wrote: > > I think what Ryan is asking about is how to find the size of the variant part > of TTypeData as used in the "case TTypeKind of" section. As in: Yes. It says a field is "tkInteger" b

[fpc-pascal] Travis CI support

2020-03-21 Thread Nico Neumann via fpc-pascal
. Kind Regards. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-21 Thread Sven Barth via fpc-pascal
Am 21.03.2020 um 08:47 schrieb Ryan Joseph via fpc-pascal: On Mar 21, 2020, at 9:39 AM, Ryan Joseph via fpc-pascal wrote: I'm going to loop through the fields of the record and get the size of each field so I can serialize the record. Am I not on the right track? No answers on this s

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-21 Thread Ryan Joseph via fpc-pascal
> On Mar 21, 2020, at 10:15 PM, Sven Barth via fpc-pascal > wrote: > > For the primitve types you need to know the sizes at compile time (e.g. > SizeOf(Word), SizeOf(LongInt), etc.) and check what type the field has using > the field list in the record's RTTI. You al

Re: [fpc-pascal] sizeof TTypeKind?

2020-03-22 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 22. März 2020, 07:28: > > > > On Mar 21, 2020, at 10:15 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > For the primitve types you need to know the sizes at compile time (e.g. > Size

Re: [fpc-pascal] Killing the mail list

2020-03-22 Thread Bo Berglund via fpc-pascal
ust seamlessly continued working. This is a LOT BETTER than the web based forums where you have no overview (I also use the Lazarus forum, but I could not live without the mirrored mail list.) -- Bo Berglund Developer in Sweden ___ fpc-pascal maill

Re: [fpc-pascal] Size of pdynarraytypeinfo

2020-03-23 Thread Sven Barth via fpc-pascal
Am 23.03.2020 um 17:49 schrieb fredvs via fpc-pascal: Some more infos: This gives the correct size with fpc <= 3.2.0: function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; var ti: pdynarraytypeinfo; begin ti:= typinfo; inc(pointer(ti),ord(pdynarraytypeinfo(ti)^.namelen

Re: [fpc-pascal] Size of pdynarraytypeinfo

2020-03-23 Thread Sven Barth via fpc-pascal
fredvs via fpc-pascal schrieb am Mo., 23. März 2020, 22:27: > By the way, may I use this tip for fpc < 3.3.1 or is it ok only with fpc > trunk? > Yes, it will also work with older be versions - as you noticed already. ;) Regards, Sven > ____

[fpc-pascal] Chaining method calls

2020-03-23 Thread Ryan Joseph via fpc-pascal
"TBase" expected "TMyClass" c := TMyClass.Create.AndThis; writeln(c.classname); end. Regards, Ryan Joseph _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Chaining method calls

2020-03-24 Thread Ryan Joseph via fpc-pascal
Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Chaining method calls

2020-03-24 Thread Michal Wallace via fpc-pascal
tstorm.com/ ) On Tue, Mar 24, 2020 at 4:08 AM Ryan Joseph via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Free Pascal - General mailing list wrote > > Is it possible to achieve this dynamically without resorting to type > > casting? It feels like classes should hav

<    11   12   13   14   15   16   17   18   19   20   >