Re: [fpc-pascal] FPC fixes3.2 gives error on "NWord div 2 * 2"

2019-02-17 Thread Mattias Gaertner via fpc-pascal
FPC gives an error on the NWord Maybe the compiler tries to be politically correct. šŸ˜‚ Sorry, couldn't resist. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Class helper properties

2019-02-25 Thread Mattias Gaertner via fpc-pascal
access helper methods. A property of a class can access helper methods. pas2js allows both directions. Mattias ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Mattias Gaertner via fpc-pascal
are more consistent than Delphi. inherited crap Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Mattias Gaertner via fpc-pascal
On Mon, 25 Feb 2019 12:49:16 -0500 Ryan Joseph wrote: > > On Feb 25, 2019, at 12:41 PM, Mattias Gaertner via fpc-pascal > > wrote: > > > > At least FPC helpers are more consistent than Delphi. > > inherited crap > > I’m pretty confident I didn’t add any

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Mattias Gaertner via fpc-pascal
$modeswitch typehelpers is allowed in mode delphi, it would be inconsistent to forbid it. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Sven Barth via fpc-pascal
nswered, but nevertheless: we don't forbid modeswitches in other modes. After all if one wants to enable a feature (or disable one that's enabled by default) then the user should be free to do so. Regards, Sven > _______ fpc-pasca

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Sven Barth via fpc-pascal
Mattias Gaertner via fpc-pascal schrieb am Mo., 25. Feb. 2019, 19:09: > On Mon, 25 Feb 2019 12:49:16 -0500 > Ryan Joseph wrote: > > > > On Feb 25, 2019, at 12:41 PM, Mattias Gaertner via fpc-pascal > > > wrote: > > > > > > At least FPC helpers are

Re: [fpc-pascal] Multi helpers

2019-02-25 Thread Sven Barth via fpc-pascal
Am 25.02.2019 um 19:44 schrieb Sven Barth: Mattias Gaertner via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org>> schrieb am Mo., 25. Feb. 2019, 19:09: On Mon, 25 Feb 2019 12:49:16 -0500 Ryan Joseph mailto:r...@thealchemistguild.com>> wrote: > > On Feb

Re: [fpc-pascal] CGI with datamodule does not work

2019-02-26 Thread Sven Barth via fpc-pascal
ead up on the differences between the old, legacy routing and the newer more flexible one here: http://wiki.lazarus.freepascal.org/fpWeb_Tutorial#Routing Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Multi helpers

2019-02-27 Thread Sven Barth via fpc-pascal
ng > into one patch? > > > Yes, though the first step should probably be to rework your commits. It's a bit of work, but that way you can nicely restructure your commit history,get rid of unintended changes(1) and maybe group the changes by functional topic or so... (1) I don

Re: [fpc-pascal] Multi helpers

2019-02-28 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Do., 28. Feb. 2019, 15:37: > > > > On Feb 28, 2019, at 1:51 AM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > Yes, though the first step should probably be to rework your commits. > It's a bit of work

Re: [fpc-pascal] *.rst vs *.rsj

2019-03-06 Thread Mattias Gaertner via fpc-pascal
that work with the *.rst files. They all now need to be > rewritten for the JSON variant. > > 2. Is it possible to tell FPC 3.0.4 to rather generate the previous > *.rst files instead of the default *.rsj? AFAIK no. Mattias _______

Re: [fpc-pascal] Registers used by calling conventions

2019-03-09 Thread Sven Barth via fpc-pascal
Anthony Walter schrieb am Fr., 8. MƤrz 2019, 22:34: > What registers are used by default calling convention and where can I find > more information about Free Pascal asm details? > > When writing code using the asm block on Delphi in Windows, the default > calling convention (

[fpc-pascal] bug in make install ?

2019-03-15 Thread Mattias Gaertner via fpc-pascal
Hi, How to install fpc 3.3.1? When I use make install under Linux, Lazarus complains: Error: the Fppkg configuration is corrupt. I can compile everything without errors. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] bug in make install ?

2019-03-18 Thread Mattias Gaertner via fpc-pascal
On Mon, 18 Mar 2019 17:02:35 +0100 Joost van der Sluis wrote: > Op 15-03-19 om 22:48 schreef Mattias Gaertner via fpc-pascal: > > How to install fpc 3.3.1? > > > > When I use make install under Linux, Lazarus complains: > > Error: the Fppkg configuration is corr

Re: [fpc-pascal] bug in make install ?

2019-03-18 Thread Mattias Gaertner via fpc-pascal
this conclusion? Or if it does not fit into a one or two sentences, you can give a link "See here how to setup fppkg http://wiki.freepascal.org/...";. Same with "Failed to create a new Fppkg configuration. You will have to fix the configuration manually or reinstall Free Pascal."

Re: [fpc-pascal] bug in make install ?

2019-03-19 Thread Mattias Gaertner via fpc-pascal
s up with error. But to my surprise the create config button worked. So apparently samplecfg changes more files than it claims. I have to find out what it does. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

Re: [fpc-pascal] fpdoc: what does the --marco parameter do?

2019-03-23 Thread Sven Barth via fpc-pascal
n > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compile for WinCE 7, target ARM, CPU Cortex-A9

2019-04-05 Thread Sven Barth via fpc-pascal
RMv7" ... > > So I do not know if this requires two pre-compiled cross-compilers or not? > You only need different compilers if you have different ABIs (e.g. Soft Float vs. Hard Float). For WinCE that isn't applicable however. Regards, Sven > ______

Re: [fpc-pascal] Compile for WinCE 7, target ARM, CPU Cortex-A9

2019-04-05 Thread Sven Barth via fpc-pascal
Test1 > > When I download and install default Lazarus and cross-compiler then when I > change "Target processor" to "ARMv5" or "ARMv7A" I get: "project1.lpr(22,0) > Error: Error while assembling exitcode 1" > As said by Christo yo

Re: [fpc-pascal] Using TInterfaceList and casting interfaces

2019-04-07 Thread Sven Barth via fpc-pascal
ther than TInterfaceList? > If you only store a specific interface type then using one of the generic containers specialized to that type would indeed be best. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] strict private construct

2019-04-12 Thread Mattias Gaertner via fpc-pascal
o member "FDropDown" Please post a complete example. Helpers are broken in several ways, but it seems this is not one of them. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] strict private construct

2019-04-12 Thread Sven Barth via fpc-pascal
Graeme Geldenhuys schrieb am Fr., 12. Apr. 2019, 14:20: > On 12/04/2019 13:10, Graeme Geldenhuys wrote: > > On 12/04/2019 12:40, Mattias Gaertner via fpc-pascal wrote: > >> I get: > >> test1.pas(26,8) Error: identifier idents no member "FDropDown" > >

Re: [fpc-pascal] mode switch madness

2019-04-12 Thread Sven Barth via fpc-pascal
g consequences. > > > > Better introduce a command-line switch to set mode switches. > > But is it maybe time we reconsider this or add an extension? It’s really > getting out of hand now. > Let me think... Nope. Not the time. Regards, Sven > _____

Re: [fpc-pascal] Optional param modifier

2019-04-13 Thread Sven Barth via fpc-pascal
anywhere and I'd need to go looking for it if I want to know whether it is set or not. Some syntax extension would be right at the declaration. So, yeah, we'll probably compromise towards the attribute syntax... Regards, Sven > ___________ fpc-pa

Re: [fpc-pascal] Optional param modifier

2019-04-13 Thread Sven Barth via fpc-pascal
in compiled code you can't look at the source. So the compiler would need to store the conditions in the PPU as well, so that the IDE could present them as part of the tooltip even if no source is available... Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Optional param modifier

2019-04-14 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am So., 14. Apr. 2019, 00:17: > > > > On Apr 13, 2019, at 6:01 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > Well, there is Oxygene's concept of Class Contracts (see > > https://docs.elementsco

Re: [fpc-pascal] mode switch madness

2019-04-14 Thread Sven Barth via fpc-pascal
cords by default (e.g. TP or ISO). Regards, Sven ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] mode switch madness

2019-04-14 Thread Sven Barth via fpc-pascal
mode objfpc2} one day. My idea was to maybe add a mode ObjFPCExt or ObjFPCAdv which is quite a bit less conservative and might break backwards compatibility a bit more often when new features are added. Regards, Sven _______ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Optional param modifier

2019-04-14 Thread Sven Barth via fpc-pascal
Am 14.04.2019 um 16:05 schrieb Ryan Joseph: On Apr 14, 2019, at 3:15 AM, Sven Barth via fpc-pascal wrote: Your idea requires exceptions as well. The compiler is not capable checking whether valid entries are passed in at compile time except for simple, constant cases, so runtime checks are

Re: [fpc-pascal] Optional param modifier

2019-04-15 Thread Sven Barth via fpc-pascal
then it completely does not exist and otherwise it's the check followed by a call to 'fpc_assert'. Also an assertion "fires" if it's condition is False, so Assert() would do the same check as "requires" or "ensure" need: requires Ā  Assigned(My

Re: [fpc-pascal] Optional param modifier

2019-04-15 Thread Sven Barth via fpc-pascal
guarantees contain conditions (expressions), not pascal code. So technically it is ok, that they are in the interface and not implementation. If I want something in the implementation, I can use normal "assert" (which by the way, have often great documenting value) The problem is that b

Re: [fpc-pascal] Can FPC optimize: if (s[i]='a') or ...

2019-04-15 Thread Sven Barth via fpc-pascal
? Ā  . Ā  . True for New Stanford Pascal: Ā  . Ā  . I fail to see how is this related to FPC or the question of the original poster (who was explicitly asking about FPC). Could we stay on topic, please? Tomas (one of FPC mailing list moderators) well, I was hoping for an answer out of the FPC

[fpc-pascal] Lazarus Release 2.0.2

2019-04-16 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the release of Lazarus 2.0.2. This release was built with FPC 3.0.4. The previous release Lazarus 2.0.0 was built with FPC 3.0.4 as well. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Sven Barth via fpc-pascal
u can install the AnchorDockingDsgn package and have all windows integrated (except for forms which need an additional package). Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Mattias Gaertner via fpc-pascal
nd place them on another screen. Mattias _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Mattias Gaertner via fpc-pascal
On Tue, 16 Apr 2019 21:02:50 +0200 Rainer Stratmann wrote: > On Dienstag, 16. April 2019 14:34:05 CEST Sven Barth via fpc-pascal > wrote: > > You can install the AnchorDockingDsgn package and have all windows > > integrated (except for forms which need an additional package).

Re: [fpc-pascal] Lazarus Release 2.0.2 - suggestions

2019-04-16 Thread Mattias Gaertner via fpc-pascal
e and click "Install selection". Then "Save and rebuild IDE". Mattias ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Really Strange Speed Problems - FPC & Neural Networks

2019-04-17 Thread Sven Barth via fpc-pascal
Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows

2019-04-18 Thread Sven Barth via fpc-pascal
? . . "fi" (in shell scripts) = "$ENDIF" (in Pascal); there's no alternative to that in the Windows batch files, because those only allow executing a single command based on the result of the "if" condition. If longer blocks of commands need to be invoked, the Windo

Re: [fpc-pascal] Resolving math expression as input from user

2019-04-23 Thread Sven Barth via fpc-pascal
ok at fpexprpars. See also here: http://wiki.freepascal.org/How_To_Use_TFPExpressionParser Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Record helper properties

2019-04-23 Thread Sven Barth via fpc-pascal
this gets important if published properties are involved, which a helper may declare as well). Use a getter as a workaround. If you use "inline" chances are high that it will be nearly equal code as if you used a direct access. Regards, Sven > ____

Re: [fpc-pascal] Record helper properties

2019-04-24 Thread Sven Barth via fpc-pascal
. And I definitely don't want to fiddle around with that only because someone didn't like to write some boilerplate code. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailm

Re: [fpc-pascal] class operator enumerator

2019-04-24 Thread Sven Barth via fpc-pascal
. It should probably best be forbidden for class operators considering there is the GetEnumerator way to add one (and it even works with helpers). Regadrs, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/

Re: [fpc-pascal] Record helper properties

2019-04-24 Thread Mattias Gaertner via fpc-pascal
On Wed, 24 Apr 2019 17:16:05 +0200 Sven Barth via fpc-pascal wrote: > Am 24.04.2019 um 15:28 schrieb Ryan Joseph: > > > >> On Apr 24, 2019, at 2:27 AM, Michael Van Canneyt > >> wrote: > >> > >> I would think this should be allowed, yes. I see no

Re: [fpc-pascal] fpc 3.2: "Declaration of type TTypeList changed"

2019-04-26 Thread Sven Barth via fpc-pascal
, as I said, I get no warning compiling the code (apart from the ton of messages about the assignment not inlined). Seems I forgot to correctly adjust the GetList methods. I fixed that in trunk now and will arange for a merge to 3.2. Regards, Sven ___

Re: [fpc-pascal] TThread.OnTerminate never called

2019-04-26 Thread Sven Barth via fpc-pascal
ed to make sure to call CheckSynchronize otherwise you'll never see it being called. In a LCL program that should work without any further action. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] Improve message "Wrong ppu found"

2019-04-26 Thread Sven Barth via fpc-pascal
ound" in the sources. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TThread.OnTerminate never called

2019-04-26 Thread Sven Barth via fpc-pascal
Dennis schrieb am Sa., 27. Apr. 2019, 05:22: > > > Sven Barth via fpc-pascal wrote: > > Am 21.04.2019 um 18:22 schrieb Dennis: > >> I am using FPC 3.0.4 Lazarus 2.00 on windows 64 > >> > >> I created a subclass of TThread and found out that the > >

Re: [fpc-pascal] Improve message "Wrong ppu found"

2019-04-27 Thread Sven Barth via fpc-pascal
leledumbo via fpc-pascal schrieb am Sa., 27. Apr. 2019, 15:14: > > Please provide a real example of a compiler output, cause I can't find > "Wrong ppu found" in the sources. > > I think what he meant is: > > $ grep -i 'wrong ppu version' -r * >

Re: [fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Sven Barth via fpc-pascal
Nozz via fpc-pascal schrieb am Mo., 6. Mai 2019, 22:18: > Empty Message > Depends on what you're using (and the platform). E.g. the compiler itself runs without glibc on Linux, but if you need to use threads for example that changes. Also if you link against libraries like GTK or

Re: [fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Sven Barth via fpc-pascal
Am 07.05.2019 um 00:16 schrieb Nozz via fpc-pascal: On Monday, May 6, 2019 10:48 PM, Sven Barth wrote: Nozz via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org>> schrieb am Mo., 6. Mai 2019, 22:18: Empty Message Depends on what you're using (and the platform). E.g

Re: [fpc-pascal] Does FPC require glibc?

2019-05-07 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Di., 7. Mai 2019, 08:32: > > > On Mon, 6 May 2019, Nozz via fpc-pascal wrote: > > > On Monday, May 6, 2019 10:48 PM, Sven Barth > wrote: > > > >> Nozz via fpc-pascal schrieb am Mo., > 6. Mai 2019, 22:18: > >> >

Re: [fpc-pascal] Turbo Pascal 3 graphics

2019-05-08 Thread Sven Barth via fpc-pascal
Kevin Lyda schrieb am Mi., 8. Mai 2019, 10:58: > Amazingly I still have a number of my high school computer science > projects which were written in Turbo Pascal 3. And a few are almost > not horribly embarrassing. > > I'd like to port them to fpc and write up the experien

[fpc-pascal] Feature Announcement: Support for multiple active helpers per type

2019-05-10 Thread Sven Barth via fpc-pascal
Hello together! We are pleased to announce that Free Pascal now supports the usage of multiple active helper types per extended type. This feature has been developed by Ryan Joseph, so thank you very much Ryan. To enable this feature you need to use the new modeswitch multihelpers. This

Re: [fpc-pascal] Feature Announcement: Support for multiple active helpers per type

2019-05-10 Thread Mattias Gaertner via fpc-pascal
On Fri, 10 May 2019 21:56:56 +0200 Sven Barth via fpc-pascal wrote: >[...] > We are pleased to announce that Free Pascal now supports the usage of > multiple active helper types per extended type. This feature has been > developed by Ryan Joseph, so thank you very much Ryan.

Re: [fpc-pascal] Feature Announcement: Support for multiple active helpers per type

2019-05-10 Thread Sven Barth via fpc-pascal
Am 10.05.2019 um 22:21 schrieb Mattias Gaertner via fpc-pascal: On Fri, 10 May 2019 21:56:56 +0200 Sven Barth via fpc-pascal wrote: [...] We are pleased to announce that Free Pascal now supports the usage of multiple active helper types per extended type. This feature has been developed by

Re: [fpc-pascal] Problem linking external libs on Linux

2019-05-12 Thread Sven Barth via fpc-pascal
Anthony Walter schrieb am So., 12. Mai 2019, 18:41: > For example suppose I want to write some pascal code linking to an > external functions like so: > > const > libsdl2 = 'libSDL2-2.0.so.0'; > > function SDL_Init(flags: Uint32): LongInt; cdecl; external libsd

Re: [fpc-pascal] Problem linking external libs on Linux

2019-05-12 Thread Sven Barth via fpc-pascal
ment version linked against. If the user has a different version installed (even if they have the development package installed) the application won't load of course. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] dot net dll in free pascal?

2019-05-13 Thread Sven Barth via fpc-pascal
uld try to host the .Net CLR. I've never done it, but there exists code for that for Delphi: https://sourceforge.net/projects/dotnetruntimelibraryfordelphi/ So that should be possible in FPC as well. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] dot net dll in free pascal?

2019-05-14 Thread Sven Barth via fpc-pascal
Luca Olivetti schrieb am Di., 14. Mai 2019, 09:13: > El 14/5/19 a les 0:15, Sven Barth via fpc-pascal ha escrit: > > > The file command under Linux says: > > Siemens.Engineering.dll: PE32 executable (DLL) (console) Intel 80386 > > Mono/.Net assembly, for MS

Re: [fpc-pascal] unexpected termination with no errors

2019-05-15 Thread Sven Barth via fpc-pascal
BeginThread API should protect the function as well though... šŸ¤·ā€ā™€ļø Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] unexpected termination with no errors

2019-05-15 Thread Sven Barth via fpc-pascal
Karoly Balogh (Charlie/SGR) schrieb am Mi., 15. Mai 2019, 18:40: > Hi, > > On Wed, 15 May 2019, Sven Barth via fpc-pascal wrote: > > >> (Sidenote: I've been pondering for a while if I should report this as a > >> bug. I think the RTL should put a

Re: [fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread Sven Barth via fpc-pascal
Is there a way I > can do this with my console application as well > Correct, that is a limitation of the console no matter the operating system. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] Checking if a TStringList already exists

2019-05-20 Thread Sven Barth via fpc-pascal
e set to Nil. Should there be other variables or fields that point to the same object instance they will stay as non-Nil. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Checking if a TStringList already exists

2019-05-21 Thread Sven Barth via fpc-pascal
Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Checking if a TStringList already exists

2019-05-21 Thread Mattias Gaertner via fpc-pascal
;my design pattern is better than yours"? Mattias _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Convert codepages back to UTF8

2019-05-27 Thread Sven Barth via fpc-pascal
such way exist? > Use CP_UTF8 as code page for SetCodePage or assign the string to a UTF8String variable. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Convert codepages back to UTF8

2019-05-28 Thread Sven Barth via fpc-pascal
Martok schrieb am Mo., 27. Mai 2019, 15:14: > Am 27.05.2019 um 14:30 schrieb Sven Barth via fpc-pascal: > > Alexey Tor. > <mailto:aaa5...@ya.ru>> schrieb am Mo., 27. Mai 2019, 13:15: > > > > LazUtils.LConvEncoding can convert utf8 to codepage (not many &g

Re: [fpc-pascal] Convert codepages back to UTF8

2019-05-28 Thread Sven Barth via fpc-pascal
position, thus you should ensure that both of your strings have the same type (not tested) or you should work simply in UTF-8 and only convert for input/output purposes. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

Re: [fpc-pascal] Class field property access

2019-06-03 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mo., 3. Juni 2019, 16:36: > I found a restriction in properties which is a little disappointing. I get > there’s probably some objective of safety but Pascal is a direct memory > access language so I don’t understand why properties have this unique > restri

Re: [fpc-pascal] Error? No range checks in mode delphi?

2019-06-03 Thread Sven Barth via fpc-pascal
rds, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Class field property access

2019-06-07 Thread Sven Barth via fpc-pascal
ring > parsing and most likely simply didn't work in reality. > Correct: http://wiki.freepascal.org/User_Changes_Trunk#Property_field_access_lists_no_longer_allows_classes Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Class field property access

2019-06-07 Thread Sven Barth via fpc-pascal
my server didn’t handle greylisting correctly). Easier to just re-sub > using gmail for now. > Michael meant this: > But my point is Pascal allows this kind of behavior so why are properties > different? > > > >> Who cares if there is an additional level of indirection?

Re: [fpc-pascal] wiki.freepascal.org is down?

2019-06-10 Thread Mattias Gaertner via fpc-pascal
ts and the wiki off that machine in the short-run. I was just > burried under office work this week, and was much slower at this task > then I hoped. > > It should happen in the next days tho'. I will keep this list posted. Any updates? The database is still locked. Ma

Re: [fpc-pascal] wiki and mailing lists are moved

2019-06-12 Thread Mattias Gaertner via fpc-pascal
connect" on https://wiki.freepascal.org. Mattias _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OpenBSD platform define

2019-06-21 Thread Sven Barth via fpc-pascal
Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Troubles with SQLDBRESTBridge

2019-06-21 Thread Sven Barth via fpc-pascal
pID integer primary key, pName varchar(50) not null, pDescription varchar(100) not null, pActive boolean not null default true ); create table Expenses ( - eID bigint primary key, - eUserFK bigint not null, - eProjectFK bigint not null, - eTypeFK bigint not null, + eID integer primary key, + eUserFK integer not null, + eProjectFK integer not null, + eTypeFK integer not null, eAmount decimal(10,2) not null, eDate date not null default CURRENT_DATE, eComment varchar(1024) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-06-22 Thread Sven Barth via fpc-pascal
Am 22.06.2019 um 10:30 schrieb Michael Van Canneyt: On Fri, 21 Jun 2019, Sven Barth via fpc-pascal wrote: Hello together! I've played around a bit with the SQLDBRESTBridge and encountered some troubles which I wanted to check up here on the list whether those are indeed bugs or not b

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-06-23 Thread Sven Barth via fpc-pascal
Am 23.06.2019 um 00:50 schrieb Michael Van Canneyt: On Sat, 22 Jun 2019, Sven Barth via fpc-pascal wrote: The REst Module has the additional disadvantage that you must have an initial /REST/ or whatever part in your URL. With the dispatcher on a datamodule, you can skip this if so desired

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-06-23 Thread Sven Barth via fpc-pascal
Am 23.06.2019 um 11:31 schrieb Michael Van Canneyt: On Sun, 23 Jun 2019, Sven Barth via fpc-pascal wrote: Okay, independently of whether the REST module is the optimal solution or not, it should work, right? (and shouldn't the Wiki entry then mention the advantages/disadvantages of th

Re: [fpc-pascal] why isn't the 'exit' in the finally end clause executed?

2019-06-23 Thread Sven Barth via fpc-pascal
current trunk at least on Win64. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-06-24 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Mo., 24. Juni 2019, 09:30: > > > On Sun, 23 Jun 2019, Sven Barth via fpc-pascal wrote: > > >>>>> - localhost:8080/metadata works > >>>>> - localhost:8080/users returns "INVALID RESOURCE" > >>

Re: [fpc-pascal] String conversions

2019-06-26 Thread Sven Barth via fpc-pascal
ards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] String conversions

2019-06-26 Thread Sven Barth via fpc-pascal
one should use helper types. Note: with which I mean types like TStringBuilder, not type helpers. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wiki: platform defines

2019-06-28 Thread Sven Barth via fpc-pascal
rivers and NT subsystems. See also: https://wiki.freepascal.org/Target_NativeNT As such defining "WINDOWS" would be wrong as code using the Win32 API would not work there. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-07-01 Thread Sven Barth via fpc-pascal
entries? Do you plan to change this? Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-07-01 Thread Sven Barth via fpc-pascal
entry (btw: is it normal that all rows in the grid appear to be empty after pressing the Insert button and if I enter new data the other rows appear to have that data as well?) or delete one. Regards, Sven ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Troubles with SQLDBRESTBridge

2019-07-02 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Di., 2. Juli 2019, 08:20: > > > On Mon, 1 Jul 2019, Sven Barth via fpc-pascal wrote: > > > Am 01.07.2019 um 23:18 schrieb Michael Van Canneyt: > >> > >>> > >>> By the way: is it correct that the sqldbrestdataset

Re: [fpc-pascal] Virtual object methods

2019-07-02 Thread Sven Barth via fpc-pascal
Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-07-07 Thread Sven Barth via fpc-pascal
Graeme Geldenhuys schrieb am So., 7. Juli 2019, 11:45: > Does FPC support annotations yet? > In the Object Pascal world they are called custom attributes, are accessible through the RTTI and their syntax is [AttributeName(Arguments)]. There exists a branch with them and it's "j

Re: [fpc-pascal] Implementation of variant records

2019-07-07 Thread Sven Barth via fpc-pascal
e ISO is probably what has done most of the damage to Pascal. AFAIK, the ISO doesn't not actually specify any "packed record" per se, but there is an explicit PACK and UNPACK procedures to more economically store sets and arrays (and possibly records, I would have to look up the IS

Re: [fpc-pascal] Implementation of variant records

2019-07-07 Thread Sven Barth via fpc-pascal
only that it shall be economised. Well, the ISO is probably what has done most of the damage to Pascal. AFAIK, the ISO doesn't not actually specify any "packed record" per se, but there is an explicit PACK and UNPACK procedures to more economically store sets and arrays (and possi

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread Sven Barth via fpc-pascal
lished properties. At least if you're willing to spend a bit of effort. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compile fpc twice or only once during install?

2019-07-12 Thread Sven Barth via fpc-pascal
cle through the compiler build process 3, starting a > new cycle with the compiler from the previous cycle. So no need to make all > a 2nd time, it is implicit in the make file recipe. > Correct. In fact it also throws in an additional WPOCYCLE (two compilations) to optimize the compiler fur

[fpc-pascal] Initial support for Custom Attributes

2019-07-12 Thread Sven Barth via fpc-pascal
gin === procedure Test; [cdecl]; begin end; === code end === Just in case: this feature won't be part of 3.2. The wiki pages New Features Trunk and User Changes Trunk will be updated soon with the new information. Regards, Sven ___ fpc-pascal mai

Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-19 Thread Sven Barth via fpc-pascal
t; Correct. Regards, Sven > _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-07-23 Thread Sven Barth via fpc-pascal
4 ? > > How to use TParamFlags to have the same result as using fpc 3.0.2 / fpc > 3.0.4 ? > Check for pfHidden. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-07-24 Thread Sven Barth via fpc-pascal
ng if "pfHidden in flags", but you nevertheless need to advance your pointer to the next parameter. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-07-25 Thread Sven Barth via fpc-pascal
fredvs schrieb am Do., 25. Juli 2019, 15:08: > Re-re hello. > > Maybe with video it will be more easy to explain the problem. > It would help more if you'd point me exactly at the code in question. Regards, Sven _______ fpc-pascal mailli

<    9   10   11   12   13   14   15   16   17   18   >