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

2024-11-17 Thread Marcos Douglas B. Santos via fpc-pascal
On Sun, Nov 17, 2024 at 9:57 AM Sven Barth via fpc-pascal wrote: > > Am 16.11.2024 um 16:42 schrieb Marcos Douglas B. Santos via fpc-pascal: > > "anonymous procedures" now > > exist and can also be declared "anywhere"; > > You didn't get the

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

2024-11-16 Thread Marcos Douglas B. Santos via fpc-pascal
On Sat, Nov 16, 2024 at 1:02 PM Michael Van Canneyt via fpc-pascal wrote: > > > [...] > > Don't get me wrong. I've been working with Delphi for over 25 years > > and with FPC for 6 or 7 years. My career is based on Object Pascal. > > So, I too am interested in keeping the language relevant... but

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

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

Re: [fpc-pascal] Traits Proposal

2021-02-15 Thread Marcos Douglas B. Santos via fpc-pascal
On Mon, Feb 15, 2021 at 12:52 PM Ryan Joseph via fpc-pascal wrote: > > > On Feb 14, 2021, at 11:43 PM, Sven Barth via fpc-pascal > > wrote: > > > > Same names should be rejected. Providing a new implementation can be > > controlled using the interface alias: > > > > === code begin === > > > > t

Re: [fpc-pascal] New User

2020-11-30 Thread Marcos Douglas B. Santos via fpc-pascal
On Mon, Nov 30, 2020 at 4:43 AM Derek Stewart via fpc-pascal wrote: > > Hi, > > I have just discover FreePascal and compiled FPC from source. I must say > it look very good. > > I did a software engineering course in the UK Open University, in the > 1980s, which was mainly Pascal orientated. > > I

Re: [fpc-pascal] uses in '' relative paths

2020-10-08 Thread Marcos Douglas B. Santos via fpc-pascal
On Wed, Oct 7, 2020 at 2:02 PM Mattias Gaertner via fpc-pascal wrote: > > On Wed, 7 Oct 2020 10:53:16 -0600 > Ryan Joseph via fpc-pascal wrote: > > > I'm trying "uses in" which I never knew existed before. > > > > The idea is that I provide a path to TOML.pas using -Fu then use the > > "in" synta

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

2019-06-27 Thread Marcos Douglas B. Santos
On Thu, Jun 27, 2019 at 7:58 PM Darius Blaszyk wrote: >> >> You can use fpWeb, which came with FPC. > > Great, is there any database master/detail example that I could use to learn? > I have no idea yet how to program the visuals for such an application. Any > tips > would be greatly appreciated

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

2019-06-27 Thread Marcos Douglas B. Santos
On Thu, Jun 27, 2019 at 1:10 PM Darius Blaszyk wrote: > > Hi all, > > I have been asked to write a limited functionality / mini ERP type of > software for an NGO that is setting up a hospital. I'm doing this in my own > time and free of charge. The compiler and IDE of choice are of course > Fre

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

2019-06-03 Thread Marcos Douglas B. Santos
On Mon, Jun 3, 2019 at 4:46 PM Anthony Walter wrote: > > Is the following a bug in the compiler or a feature? Is would seem using > {$mode delphi} allows code which clearly violates range bound to compile > without error. > > program Project1; > > {$mode delphi} > > type > TSuit = (suHeart, su

Re: [fpc-pascal] libmosquitto headers for FPC

2019-03-14 Thread Marcos Douglas B. Santos
On Thu, Mar 14, 2019 at 11:55 AM Karoly Balogh (Charlie/SGR) wrote: > > Hi, > > Not sure if anyone have done this already, but I converted the > libmosquitto (which is a C-written MQTT client library) header > (mosquitto.h) to Free Pascal, so it allows using libmosquitto from Pascal > code. I work

Re: [fpc-pascal] Passing nested procs out?

2018-11-15 Thread Marcos Douglas B. Santos
On Thu, Nov 15, 2018 at 8:15 AM Sven Barth via fpc-pascal wrote: > > Am Do., 15. Nov. 2018, 10:17 hat Ryan Joseph > geschrieben: >> >> Is passing nested procs outside of the calling scope relying on undefined >> behavior? It doesn’t seem like this should be allowed. > > > See the notes mentione

Re: [fpc-pascal] fpc.cfg using relative paths

2018-11-04 Thread Marcos Douglas B. Santos
On Sun, Nov 4, 2018 at 5:52 PM Fabio Luis Girardi wrote: > > Hi Marcos! > > I use a lot of FPC/Lazarus versions using one FPC.cfg file, but instead of > using relative paths, I use compiler variables, absolute paths, ext4 symlink > and directory structure equal to all versions. The unique thing

[fpc-pascal] fpc.cfg using relative paths

2018-11-04 Thread Marcos Douglas B. Santos
Is there, any change, to use relative paths inside fpc.cfg? I have several Lazarus copies, in different paths, and I would like to use the same fpc.cfg on all of them. I've tried to use relative paths and macros but it hasn't worked. best regards, Marcos Douglas __

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-02 Thread Marcos Douglas B. Santos
On Fri, Nov 2, 2018 at 7:13 AM James wrote: > > I've been programming for decades with Pascal, starting with Turbo Pascal, > and for a few years now with Freepascal, and even wrote really complicated > console windows programs with Freepascal that do windows function calls... > But now I find t

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Marcos Douglas B. Santos
On Tue, Oct 23, 2018 at 12:02 PM Bo Berglund wrote: > > I want to build FPC/Lazarus (3.0.4/1.8.4) from sources on a new Linux > (Ubuntu 18.04 TLS MATE) using an i386 family CPU. > AFAIK I need to have the fpc seed compiler in order to do this. > > But this is a hen and egg problem, how can I downl

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-15 Thread Marcos Douglas B. Santos
On Mon, Oct 15, 2018 at 9:33 AM Michael Van Canneyt wrote: > > > On Sun, Oct 14, 2018 at 8:19 PM Michael Van Canneyt > > wrote: > >> > >> > >> > >> On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: > >> > >> > Ma

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-15 Thread Marcos Douglas B. Santos
On Sun, Oct 14, 2018 at 8:19 PM Michael Van Canneyt wrote: > > > > On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: > > > Marcos Douglas B. Santos schrieb am So., 14. Okt. 2018, > > 16:15: > > > >> Do you know any Pascal lib to parse strings to con

[fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-14 Thread Marcos Douglas B. Santos
Do you know any Pascal lib to parse strings to convert in date/time values? The user is supposed to type human-friendly values like: - "day"=> trunc(now) - "day-2" => trunc(now-2) - "week" => trunc(now-7) - "yesterday" => trunc(now-1) - etc... But they could type even their computer date format

[fpc-pascal] Abstract method in TBufDataSet

2018-09-26 Thread Marcos Douglas B. Santos
Is it correct that TBufDataSet - a real component in Lazarus palette that can be used as an instance - could have a abstract method or this is a mistake? bufdataset.pas(616,15) Hint: Found abstract method: LoadBlobIntoBuffer(;TFieldDef;PBufBlobField); If it is by design, do you consider normal se

Re: [fpc-pascal] Auto vars (again)

2018-08-18 Thread Marcos Douglas B. Santos
On Sat, Aug 18, 2018 at 2:04 PM, Ryan Joseph wrote: > > How does TAutoFree in mORMot work? Never heard of this. See http://blog.synopse.info/post/2014/11/14/Automatic-TSQLRecord-memory-handling regards, Marcos Douglas ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 11:55 AM, Michael Van Canneyt wrote: > >> Thanks. >> But, is uregexp part of FPC? > > > Not yet, but I intend to make it so. All right! Thanks. Marcos Douglas PS. Please, don't forget the XPath Unicode implementation too. We have talked about it months ago... but I can im

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 11:36 AM, Giuliano Colla wrote: > Il 03/07/2018 15:14, Marcos Douglas B. Santos ha scritto: > >> Can we sleep a thread for minutes or even hours without any problems? >> The OS will not kill the thread? > > On Linux environment, sample situati

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 10:26 AM, Michael Van Canneyt wrote: > > > On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote: > >> On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt >> wrote: >>> >>> >>> On Tue, 3 Jul 2018, Marco van de Voort wrote:

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt wrote: > > On Tue, 3 Jul 2018, Marco van de Voort wrote: > Trivial indeed, till you need more fine-grained control. > e.g. C needs to be an array of chars that mark word boundaries etc. > > But I managed to solve the problem with regexps... How?

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-03 Thread Marcos Douglas B. Santos
On Mon, Jul 2, 2018 at 6:28 PM, Marc Santhoff wrote: > On Sat, 2018-06-30 at 17:57 -0300, Marcos Douglas B. Santos wrote: >> >> My question is: Nowadays, can I use TTimer with no restrictions in a >> daemon application on Windows? If not, which could be a possible >>

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Marcos Douglas B. Santos
On Mon, Jul 2, 2018 at 3:16 AM, Michael Van Canneyt wrote: > > [...] > > Contrary to what it may seem it is not so easy to make a search engine for > the documentation. I've had several shots at it, but have not yet come up > with a good mechanism. The last mechanism I tried ended up indexing more

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sun, Jul 1, 2018 at 2:15 AM, Martin Schreiber wrote: > On Saturday 30 June 2018 22:57:47 Marcos Douglas B. Santos wrote: > >>If not, which could be a possible >> solution? >> > You could use a MSEgui application, instead of > " > uses > msegui; >

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sat, Jun 30, 2018 at 9:13 PM, R0b0t1 wrote: > On Sat, Jun 30, 2018 at 3:57 PM, Marcos Douglas B. Santos > wrote: >> Hi, >> >> I need to build a daemon app on Windows. It will need a timer to >> performe some tasks. This timer could be big among 15 min, 30 min, 2

[fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread Marcos Douglas B. Santos
Hi, I need to build a daemon app on Windows. It will need a timer to performe some tasks. This timer could be big among 15 min, 30 min, 2 hours, etc. I thought that I can use TTimer but I've always heard that it's not possible because some problems related with "NoGUI" stuff. I've found a thread

Re: [fpc-pascal] Proper preprocessor?

2018-06-24 Thread Marcos Douglas B. Santos
On Fri, Jun 22, 2018 at 6:47 PM, Sven Barth via fpc-pascal wrote: > >> [...] > > Why not simply test it? > > That said you can also do this: > > === code begin === > > {$macro on} > > {$ifdef debug} > {$define foo := foo_debug} > {$else} > {$define foo := foo_run} > {$endif} > > uses > foo;

Re: [fpc-pascal] Proper preprocessor?

2018-06-22 Thread Marcos Douglas B. Santos
On Fri, Jun 22, 2018 at 5:13 PM, Florian Klämpfl wrote: > > {$macro on} > > {$define TypeStr:=specialize _TypeStr} > > begin > Writeln(TypeStr); > end. Can I use the same idea but for units? Like this: {$macro on} uses {$ifdef debug} foo_debug {$define foo := foo_debug} {else}

Re: [fpc-pascal] Default record fields

2018-06-22 Thread Marcos Douglas B. Santos
On Fri, Jun 22, 2018 at 12:59 PM, Ralf Quint wrote: > On 6/22/2018 4:19 AM, Karoly Balogh (Charlie/SGR) wrote: >> >> Hi, >> >> On Fri, 22 Jun 2018, Ryan Joseph wrote: >> >>> I want to do a pivot away from the macro stuff to ask another question. >>> Since I’ve wanted to contribute to the compiler

Re: [fpc-pascal] Better usage of "with"

2018-06-14 Thread Marcos Douglas B. Santos
On Thu, Jun 14, 2018 at 8:43 AM, Ryan Joseph wrote: > [...] > His premise for the proposal is that programming languages > should help the programmer to make code which is better read > by the CPU instead of high-level constructs for abstract concepts. > It’s very specific to a particular task but

Re: [fpc-pascal] HTTPRoute.pas and TRouteObject

2018-06-03 Thread Marcos Douglas B. Santos
On Sun, Feb 11, 2018 at 4:24 AM, Kevin Jesshope wrote: > > Thanks Michael, > > I did consider putting everything in the HandleRequest but I prefer > the virtual constructor. I would like to suggest you do not use inherited classes from TRouteObject as its business classes. Inside HandleRequest y

Re: [fpc-pascal] Free e-book: Free Pascal from Square One

2018-05-29 Thread Marcos Douglas B. Santos
On Sun, May 27, 2018 at 1:18 PM, Jonas Maebe wrote: > Hi, > > See http://www.contrapositivediary.com/?p=4034 > > It's by Jeff Duntemann, and based on his 1993 book "Borland Pascal 7 from > Square One". Thanks for sharing. Regards, Marcos Douglas ___ fp

Re: [fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marcos Douglas B. Santos
On Sat, May 26, 2018 at 4:56 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas B. Santos said: >> Can I make a class helper to implements an Interface in an existing class? > > No, since a change to the class is needed (the tables with methods). Helpers >

[fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marcos Douglas B. Santos
Hi, Can I make a class helper to implements an Interface in an existing class? For example, TStringList class has Find: public function TStringList.Find(const S: string; out Index: Integer):Boolean; Imagine an IFinder interface with the same method (only this method). So, is it possible to make

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-12 Thread Marcos Douglas B. Santos
On Wed, May 9, 2018 at 10:48 AM, Michael Van Canneyt wrote: > > > On Wed, 9 May 2018, Marcos Douglas B. Santos wrote: > >>>> OK sorry for didn't find this bugreport. >>>> Is this fix in fixes_3_0 ? >>> >>> >>> >>> I

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-09 Thread Marcos Douglas B. Santos
On Wed, May 9, 2018 at 9:31 AM, Michael Van Canneyt wrote: > >> >> OK sorry for didn't find this bugreport. >> Is this fix in fixes_3_0 ? > > > I do not know, presumably not. For "new things" I use to use the last version published, just to see that works. Then, I start to use fixes_3_0. I suppos

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-09 Thread Marcos Douglas B. Santos
On Wed, May 9, 2018 at 3:47 AM, Michael Van Canneyt wrote: > > > On Tue, 8 May 2018, Marcos Douglas B. Santos wrote: > >> On Mon, May 7, 2018 at 6:05 PM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> On Mon, 7 May 2018, Marcos Dou

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-08 Thread Marcos Douglas B. Santos
On Mon, May 7, 2018 at 6:05 PM, Michael Van Canneyt wrote: > > > On Mon, 7 May 2018, Marcos Douglas B. Santos wrote: > >>> Application.Run; >>> end. >>> >>> ===END=== >>> >>> My environment is: Lazarus 1.8.3 r57764 FPC 3.0

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-07 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 5:44 PM, Marcos Douglas B. Santos wrote: > On Sat, May 5, 2018 at 11:51 AM, Michael Van Canneyt > wrote: >> >> >> On Sat, 5 May 2018, Marcos Douglas B. Santos wrote: >> >>> I'm using fpWeb in standalone mode (fphttpapp unit) t

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 6:26 PM, Marcos Douglas B. Santos wrote: > On Sun, May 6, 2018 at 6:05 PM, leledumbo via fpc-pascal > wrote: >>> Create a call that calls Application.Terminate. >> >> I just call DumpHeap(false); instead > > Where is this function

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 6:05 PM, leledumbo via fpc-pascal wrote: >> Create a call that calls Application.Terminate. > > I just call DumpHeap(false); instead Where is this function or method? Could you give so more information how is this works with heaptrc? About my test, do you have the same mem

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sat, May 5, 2018 at 11:51 AM, Michael Van Canneyt wrote: > > > On Sat, 5 May 2018, Marcos Douglas B. Santos wrote: > >> I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. >> I would like to see the heaptrc log in the end, as we can do in n

Re: [fpc-pascal] Cross compiling: Win 32 to 64

2018-05-06 Thread Marcos Douglas B. Santos
Sorry guys, I've just forgot to setup in Lazarus, Config and Target this: -Twin64 _AND_ -Px86_64 parameters. In the first time, I just set -Twin32 but -P stayed "(default)":| ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

[fpc-pascal] Cross compiling: Win 32 to 64

2018-05-06 Thread Marcos Douglas B. Santos
I have a script for a long time that I use to compile FPC from sources. Today I'm configuring a new machine and I would like to use this script to configure FPC and Lazarus — I have another script for Lazarus as well. I've compiled FPC with no errors using this script. I use `crossinstall` too. Ag

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 10:45 AM, Vojtěch Čihák wrote: > i, > > LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if > there will be absolutely no other way around. There are many others without LCL prefix... > I believe it can be useful but I don't think it's "must have" (when

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 4:40 AM, Sven Barth via fpc-pascal wrote: > [...] > > In FPC we currently don't use dotted unit names much, but maybe that will > change in the future. Would be good if all units could be prefixed to make a pattern, like `fpc.web, fpc.xml, ...` but I know that we need to ma

[fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-05 Thread Marcos Douglas B. Santos
I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. I would like to see the heaptrc log in the end, as we can do in normal desktop applications. So, in one route I create an object and don't release it to simulate a memleak. I've tried to set heaptrc.SetHeapTraceOutput('log.

Re: [fpc-pascal] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
On Sun, Mar 11, 2018 at 11:51 AM, Vojtěch Čihák wrote: > With this modification and -gh it is alright: > Only if you declare `Bar` as `IBar` instead of `TBar`. Please, check your code again. Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pasca

Re: [fpc-pascal] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
Not here. I'm using FPC 3.0.4. I've took a look at EMB documentation: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.Supports Take a look at "Warning" section. That's the problem. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
On Sun, Mar 11, 2018 at 11:17 AM, Vojtěch Čihák wrote: > Yes, TBar is TInterfacedObject and is reference counted therefore Free is > not needed. > > Just comment the line //Bar.Free; compile with -gh and you will see no > memory leak. You think this is the problem... All right, try to change your

Re: [fpc-pascal] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
On Sun, Mar 11, 2018 at 10:52 AM, Vojtěch Čihák wrote: > > Hi, > > Bar shoud be released by Interface, no need to call Free. I'm sorry, but `Bar` was defined as `Bar: TBar` so, it's a class not an interface. Marcos Douglas ___ fpc-pascal maillist - f

[fpc-pascal] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
The code below should work but I get an AV when the program calls `Bar.Free`. Do you know why? Lazarus 1.8.1 r57299 FPC 3.0.4 i386-win32-win32/win64 ===begin=== program Project1; uses SysUtils; type IBar = interface ['{C22FB8F4-1EC6-42C4-81E4-F2A52CC52258}'] function Name: string;

Re: [fpc-pascal] AVG says EXE has a virus | FPC 37459 rev

2018-01-22 Thread Marcos Douglas B. Santos
I've also compiled using FPC -> /tags/release_3_0_4 and I had no issues. Seems a problem only in /branches/fixes_3_0 (after 37459 rev). Regards, Marcos Douglas On Mon, Jan 22, 2018 at 11:37 PM, Marcos Douglas B. Santos wrote: > Hi, > I've updated my FPC -> /branches/fi

[fpc-pascal] AVG says EXE has a virus | FPC 37459 rev

2018-01-22 Thread Marcos Douglas B. Santos
Hi, I've updated my FPC -> /branches/fixes_3_0 from 37459 rev (2017-10-01) to 38018 rev (2018-01-10). Every time that I'm compiling a project, my AVG antivirus says that "Win32:MalOb-IJ [Cryp]" was neutralized. Lazarus 1.8.1 r57007 FPC 3.0.3 i386-win32-win32/win64 This not occur if I compile usin

Re: [fpc-pascal] Final Methods support

2018-01-06 Thread Marcos Douglas B. Santos
On Sat, Jan 6, 2018 at 2:41 PM, Sven Barth via fpc-pascal wrote: > Am 06.01.2018 17:31 schrieb "Marcos Douglas B. Santos" : > > Does FPC have support for final methods? > > Please see -> > http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Methods_(Delphi)#Final_Me

[fpc-pascal] Final Methods support

2018-01-06 Thread Marcos Douglas B. Santos
Does FPC have support for final methods? Please see -> http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Methods_(Delphi)#Final_Methods Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
On Thu, Jan 4, 2018 at 10:33 PM, leledumbo via fpc-pascal wrote: >> The problem is that the WS could take so long time that the entire request > will broke with a "time out". > > I suggest making the request handling asynchronous instead. So request will > only register and return some unique id t

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
On Thu, Jan 4, 2018 at 6:33 PM, Michael Van Canneyt wrote: > > If you use a thread to consume it, yes. > > Without more info on how you consume this webservice, it's difficult to > answer this. Yes, sorry. I should explained more. I'm using WST -> http://svn.code.sf.net/p/lazarus-ccr/svn/wst (rev

[fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
Hi, I have a FastCGI application which needs to receive an user request but, in some cases, the app should consume a WebService(WS) before make the response to the user. The problem is that the WS could take so long time that the entire request will broke with a "time out". My question is: Can I

Re: [fpc-pascal] fpc2js

2017-12-06 Thread Marcos Douglas B. Santos
On Wed, Dec 6, 2017 at 9:48 AM, Victor Campillo wrote: > Hi, > > Testing the preview that Michael was so kind to share, I found the next > minor problems trying to compile the packages included, I think that > everything is related to that the project is work in progress so nothing to > worry much

Re: [fpc-pascal] FPC 3.0.4 released!

2017-12-06 Thread Marcos Douglas B. Santos
On Tue, Dec 5, 2017 at 10:13 PM, Graeme Geldenhuys wrote: > > Windows just isn't fun. Long live FreeBSD and Linux. I believe you compile FPC on Linux, right? So, why do you do the same on Windows? It's pretty easy... Best, Marcos Douglas ___ fpc-pascal

Re: [fpc-pascal] FPC attributes / annotations support

2017-12-01 Thread Marcos Douglas B. Santos
On Thu, Nov 30, 2017 at 5:35 PM, Graeme Geldenhuys wrote: > On 2017-11-29 23:37, Marcos Douglas B. Santos wrote: > >> "No one are using Object Pascal nowadays". > > > It seems there is still pretty good interest in Object Pascal in Brazil. We > have a 21 ye

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-30 Thread Marcos Douglas B. Santos
On Thu, Nov 30, 2017 at 4:23 AM, LacaK wrote: > >>> the idea) a rewrite of a multi-million lines of code project into C#, >>> rather >>> than move to open source development tools where they can keep the huge >>> code >>> base, the same language and reuse the same development skills. How >>> weird

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 9:35 PM, Rainer Stratmann wrote: > Am Mittwoch, 29. November 2017, 07:19:32 schrieb Martin Schreiber: >> What is missing >> in Free Pascal? > > A userfriendly setup/install for every compile/cross compile scenario out of > the box. > > Without the need for compiling fpc. >

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 9:26 PM, Graeme Geldenhuys wrote: > On 2017-11-29 06:19, Martin Schreiber wrote: >> >> What is missing in >> Free Pascal? > > > Good question. After all, Delphi used the FPC compiler to develop for iOS > before they had their own compiler ready. I believe XE2 shipped with a

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 8:55 PM, Graeme Geldenhuys wrote: > > Yup, I gathered that much... Hence the "dreaming" tag I used. :) > > I just can't believe how bad things have become in Delphi. A commercial > "professional" and "enterprise" quality product - it's everything but that! > And the asking

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 11:31 AM, Michael Van Canneyt wrote: > > > On Wed, 29 Nov 2017, Marcos Douglas B. Santos wrote: > >> On Wed, Nov 29, 2017 at 11:10 AM, Michael Van Canneyt >> wrote: >>> >>> >>> I do. I meant that I use pas2js as the p

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 11:10 AM, Michael Van Canneyt wrote: > > I do. I meant that I use pas2js as the precompiler command. Hmm... right. I saw yesterday, in the official website, that FPC 3.0.4 was released but I didn't see an email about it... Is pas2js included in that version? Best, Marcos

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 6:39 AM, Michael Van Canneyt wrote: > > > On Wed, 29 Nov 2017, Graeme Geldenhuys wrote: > >> On 2017-11-27 21:39, Mattias Gaertner wrote: >>> >>> Lazarus now supports attributes. >> >> >> Awesome, thanks for the update. >> >> [dreaming] >> Now only if Lazarus could support

Re: [fpc-pascal] FPC attributes / annotations support

2017-11-29 Thread Marcos Douglas B. Santos
On Wed, Nov 29, 2017 at 4:50 AM, Graeme Geldenhuys wrote: > > [dreaming] > Now only if Lazarus could support the Delphi dcc32 compiler. ;-) Boy oh > boy... I've been using Delphi XE3 for a month now (new job) - it is SH*T. > Constant IDE crashes, online help doesn't work, the bug reporting dialog

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Marcos Douglas B. Santos
Em 25 de nov de 2017 2:43 PM, "Martin Schreiber" escreveu: And why Free Pascal to develop the android application? For the same reasons that we use Object Pascal instead of C# , Java, whatever. Best, Marcos Douglas ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Memory Leak's in XMLRead unit

2017-11-08 Thread Marcos Douglas B. Santos
On Wed, Nov 8, 2017 at 10:52 AM, African Wild Dog wrote: > 2017-11-07 23:57 GMT-02:00 Michael Van Canneyt : >> >> ... >> > My environment: Linux Debian Stretch 64 bits - Lazarus 1.6.4 - fpc 3.0.2. > > I'm quite impressed with the processing power of fastcgi fcl-web > applications: they consume lit

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal wrote: > Am 23.10.2017 08:29 schrieb "Marco van de Voort" : > > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type aliases are currently not supported in mode Delphi. In mode ObjFPC >> they might work, but I'm not sure abo

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Sun, Oct 22, 2017 at 11:53 PM, Ryan Joseph wrote: > > >> On Oct 23, 2017, at 9:14 AM, Marcos Douglas B. Santos >> wrote: >> >> How do the same with generic classes, using mode delphi? > > I think you need to specialize then alias the specialize type. Why

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Mon, Oct 23, 2017 at 3:28 AM, Marco van de Voort wrote: > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type aliases are currently not supported in mode Delphi. In mode ObjFPC >> they might work, but I'm not sure about that either... >> >> That said I also don't see the use of

[fpc-pascal] Generic compiler error

2017-10-22 Thread Marcos Douglas B. Santos
Hi, In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar = TFoo; Compile Project, Target: C:\temp\project1.exe: Exit code 1, Errors: 4 project1.lpr(25,18) Error: Identifier not found "T"

Re: [fpc-pascal] Lua language in /packages/lua will be update?

2017-10-15 Thread Marcos Douglas B. Santos
On Sun, Oct 15, 2017 at 1:27 PM, Ryan Joseph wrote: > here’s the version I found which I’m using. It’s 5.3 so it’s more recent at > least. > > https://github.com/malcome/Lua4Lazarus/blob/master/lua53.pas Thanks... But the problem with this project is that it is not updated since 3 years. My conc

[fpc-pascal] Lua language in /packages/lua will be update?

2017-10-15 Thread Marcos Douglas B. Santos
Hi, I would like to know if the translation of Lua to FPC, which I found in /packages/lua, is an official translation or just a lib made by someone else, which was included in packages. I am asking because the last release of Lua is 5.3.4 (Jan/2017) and the FPC code is using the 5.1 version which

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread Marcos Douglas B. Santos
On Sun, Oct 15, 2017 at 8:25 AM, Michael Van Canneyt wrote: > > > Hello, > > If you want the latest preview and demos to play with: > > https://www.freepascal.org/~michael/pas2js-demo-0.8.28.zip > > The component developer is doing fantastic work with the visual components, > and it starts to look

Re: [fpc-pascal] Google Drive API

2017-10-14 Thread Marcos Douglas B. Santos
On Sat, Oct 14, 2017 at 1:01 AM, leledumbo via fpc-pascal wrote: > Marcos Douglas B. Santos wrote >> I didn't found... In this path \packages\googleapi\examples only >> exists \generator directory. :( >> >> Trunk, rev 37453. > > Try this, it wasn't

Re: [fpc-pascal] Google Drive API

2017-10-13 Thread Marcos Douglas B. Santos
On Wed, Oct 11, 2017 at 10:17 AM, Michael Van Canneyt wrote: > > > On Wed, 11 Oct 2017, Marcos Douglas B. Santos wrote: > >> Hi, >> >> I would like to know if FPC implements the full Google Drive API. If >> so, since which version? > > > Yes, since v

Re: [fpc-pascal] Const params question

2017-10-11 Thread Marcos Douglas B. Santos
On Wed, Oct 11, 2017 at 9:33 AM, wrote: > On 11/10/17 13:11, Michael Van Canneyt wrote: >> >> Delphi has recently > > > Huh? I thought Delphi got shut down years ago. See https://www.embarcadero.com/products/delphi Marcos Douglas ___ fpc-pascal maill

[fpc-pascal] Google Drive API

2017-10-11 Thread Marcos Douglas B. Santos
Hi, I would like to know if FPC implements the full Google Drive API. If so, since which version? First, I need to implement upload, download and search of files [1]. Any example? [1] https://developers.google.com/drive/v3/web/manage-uploads Thanks, Marcos Douglas ___

Re: [fpc-pascal] Const params question

2017-10-11 Thread Marcos Douglas B. Santos
On Wed, Oct 11, 2017 at 9:11 AM, Michael Van Canneyt wrote: > > On Wed, 11 Oct 2017, Marcos Douglas B. Santos wrote: > > [...] >> Is constref compatible with Delphi? > > > Delphi has recently introduced some annotation for the same purpose. > > As usual, they cho

Re: [fpc-pascal] Const params question

2017-10-11 Thread Marcos Douglas B. Santos
On Wed, Oct 11, 2017 at 7:01 AM, Michael Van Canneyt wrote: > > > On Wed, 11 Oct 2017, Ryan Joseph wrote: > >> If you declare a parameter as const does that effectively behave like >> passing by reference? I have some performance sensitive functions that >> take records as arguments and I don’t w

Re: [fpc-pascal] Managed properties idea

2017-10-09 Thread Marcos Douglas B. Santos
On Mon, Oct 9, 2017 at 3:54 PM, Maciej Izak wrote: > 2017-10-09 14:43 GMT+02:00 Marcos Douglas B. Santos : >> >> This TAutoFree just "put" the "finally" and call .Free for an array of >> objects or does it something else? >> Could you send the link

Re: [fpc-pascal] Managed properties idea

2017-10-09 Thread Marcos Douglas B. Santos
On Mon, Oct 9, 2017 at 5:24 AM, Maciej Izak wrote: > 2017-10-07 2:10 GMT+02:00 Michalis Kamburelis : >> >> [...] > > mORMot framework has also nice solution for "auto free" (solution uses > interfaces too): > > ===code begin=== > with TAutoFree.One(o, TObject.Create) do > begin > ... >

Re: [fpc-pascal] TBufDataset vs TClientDataset

2017-10-08 Thread Marcos Douglas B. Santos
On Sun, Oct 8, 2017 at 3:58 PM, Graeme Geldenhuys wrote: > Hi, > > I read a couple of archived mailing list posts about TBufDataset, which from > what I read is FPC's equivalent to TClientDataset. > > That then begs the question... Why isn't it called TClientDataset in FPC? > What happened to Delp

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread Marcos Douglas B. Santos
On Sun, Oct 8, 2017 at 1:38 AM, Mr Bee via fpc-pascal wrote: > Hi, > > Is there any FPC command line option for writable constanst directive {$J} > or {$WRITEABLECONST} ? > > Since I knew this directive, I always set it to {$J-} (because {$J+} is > ridiculous). However, sometimes I forget to put i

Re: [fpc-pascal] Managed properties idea

2017-10-07 Thread Marcos Douglas B. Santos
On Fri, Oct 6, 2017 at 4:49 PM, Michalis Kamburelis wrote: > 2017-10-06 20:52 GMT+02:00 Marcos Douglas B. Santos : > [...] >>> In this case, in which you indeed want two of these features simultaneously, >>> I advise COM interfaces myself :) That's why they are docu

Re: [fpc-pascal] Managed properties idea

2017-10-07 Thread Marcos Douglas B. Santos
On Fri, Oct 6, 2017 at 4:17 PM, Sven Barth via fpc-pascal wrote: > Am 06.10.2017 20:52 schrieb "Marcos Douglas B. Santos" : >> > And reference counting like in e.g. C++ "shared pointers", that can >> > wrap any >> > class, without any

Re: [fpc-pascal] Managed properties idea

2017-10-06 Thread Marcos Douglas B. Santos
On Fri, Oct 6, 2017 at 1:06 PM, Michalis Kamburelis wrote: > > 05.10.2017 2:07 PM "Marcos Douglas B. Santos" napisał(a): > > [...] > As Sven told you, just use COM Interfaces. > Look this explanation -> > http://castle-engine.io/modern_pascal_introduction.html#

Re: [fpc-pascal] Managed properties idea

2017-10-05 Thread Marcos Douglas B. Santos
On Thu, Oct 5, 2017 at 5:55 AM, Ryan Joseph wrote: > >> On Oct 5, 2017, at 12:28 PM, Sven Barth via fpc-pascal >> wrote: >> >> The way to go in Object Pascal are reference counted interfaces (aka >> COM-style interfaces). After all one should program against an interface >> anyway and that ref

Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-27 Thread Marcos Douglas B. Santos
On Wed, Sep 27, 2017 at 12:16 PM, African Wild Dog wrote: > Hello, > > I am about to start a new project for a very small web application. > > I have some questions: > > 1 - Are the fcl-web and postgres packages stable? > 2 - Are they recommended for use in production environments? > 3 - Do they h

Re: [fpc-pascal] Where and Why is there a memory leak?

2017-09-06 Thread Marcos Douglas B. Santos
On Wed, Sep 6, 2017 at 10:17 PM, Ryan Joseph wrote: > >> On Sep 6, 2017, at 10:20 PM, Sven Barth via fpc-pascal >> wrote: >> >> You're missing that FHook was declared as IHook, not THook. >> > > In terms of memory why does it matter how it was declared? The memory was > allocated in Create() so

Re: [fpc-pascal] Where and Why is there a memory leak?

2017-09-06 Thread Marcos Douglas B. Santos
On Wed, Sep 6, 2017 at 6:55 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > > I can't remember ever [while using Delphi] being forced to implement a > getter method in the "property ... implements..." line, but it seems that > is the only way it remove memory leaks under FPC. Weird

Re: [fpc-pascal] Check In Interface Type Helpers

2017-08-23 Thread Marcos Douglas B. Santos
On Wed, Aug 23, 2017 at 3:25 PM, Sven Barth via fpc-pascal wrote: > On 23.08.2017 19:57, Marcos Douglas B. Santos wrote: >> Would we have any problem of memory leaks using Interface helper with >> COM interfaces (refcount)? >> I mean, the "type helper" has construct

  1   2   >