Re: [fpc-pascal] Traits Proposal

2021-02-15 Thread Marcos Douglas B. Santos via fpc-pascal
erface would hide the local declaration. Not too different > from how normal inheritance works really. > As I understand, this is not a method hiding, but just to tell the compiler which method to implement the interface—the interface could have method names which a

Re: [fpc-pascal] New User

2020-11-30 Thread Marcos Douglas B. Santos via fpc-pascal
mainly Pascal orientated. > > I am working my way through the excellent FPC tutorials. > > Can anyone recommend any good reference books on FPC. https://castle-engine.io/modern_pascal_introduction.html regards, Marcos Douglas __

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

2020-10-08 Thread Marcos Douglas B. Santos via fpc-pascal
t. > > > > unit TOML; > > interface > > uses > > TOMLParser in '/sources', > > TOMLTypes in '/sources'; > > uses > TOMLParser in 'sources/TOMLParser.pas', > TOMLTypes in 'sources/TOMLTypes.pas'; > > Not Delphi compatible. I think this works even

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

2019-06-27 Thread Marcos Douglas B. Santos
amples for you, sorry. att, Marcos Douglas ___ 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-06-27 Thread Marcos Douglas B. Santos
lprogramming.com/fpweb https://objectpascalprogramming.com/fpweb-hello I believe you can use Google Translator, though. best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2019-06-03 Thread Marcos Douglas B. Santos
> type > TSuit = (suHeart, suDiamond, suClub, suSpade); > TRedSuit = suHeart..suDiamond; > > var > Suit: TRedSuit; > begin > // This should generate an error, but {$mode delphi} allows it > Suit := suClub; > end. Debug

Re: [fpc-pascal] libmosquitto headers for FPC

2019-03-14 Thread Marcos Douglas B. Santos
klib, or something.) Good job. I'm thinking use some like that to split a big desktop application code into few other applications, maintaining a communication among them. Is it a good case to use mosquitto? If so, I can help you on Windows, testing and etc. best regards, Marcos Douglas

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

2018-11-15 Thread Marcos Douglas B. Santos
ons, with the advantage to make the code more readable and "Pascalish". Am I right? regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2018-11-04 Thread Marcos Douglas B. Santos
in different drivers. regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[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
windows file open, or save-as dialog boxes.. etc.. > even a hello world tutorial would be helpful... ok, so ZERO windows > programming experience here... Any advice on where to start? > I've just search on Google: https://www.win.tue.nl/~wstomv/edu/lazarus/dev_gui_app

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
problem, how can I download the compiler > needed to build 3.0.4 on this Linux machine? The easiest way: fpcupdeluxe https://github.com/newpascal/fpcupdeluxe/releases regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@list

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

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

2018-10-14 Thread Marcos Douglas B. Santos
etc... But they could type even their computer date format or ISO as well. A lib in C, but very complex: - https://github.com/gagern/gnulib/blob/master/lib/parse-datetime.y I would like to start with something simpler, if possible. Thank you. Best regards, Marcos Douglas __

[fpc-pascal] Abstract method in TBufDataSet

2018-09-26 Thread Marcos Douglas B. Santos
see this hint when using it? regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

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

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
ended up indexing more > than 24 hours before I killed it. > > Contributions or ideas welcome. I found this project 2 years ago but I've never tried to use: https://github.com/AcoonDe/OpenAcoon Maybe it could give you some ideas. Regards, Marcos Douglas ___

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 > m

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
fpc-pascal/2013-March/036823.html Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Proper preprocessor?

2018-06-24 Thread Marcos Douglas B. Santos
I was on the road, without my laptop, and I didn't want to forget this :) And your way is even better, thank you. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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
solutions > for problems that nobody has (in real life)... +1 It is better to have a simple language with packages/libs to do the (real) job than a complex language that try doing anything that someone could imagine or want to do. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

2018-06-03 Thread Marcos Douglas B. Santos
e HandleRequest you can instantiate any business classes that you want and your code won't need fpWeb to test it. Make them separated. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

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 shari

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 <mar...@stack.nl> 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 w

[fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marcos Douglas B. Santos
TStringList to implement IFinder using a helper? If yes, which is the syntax? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <mich...@freepascal.org> 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 ? >>> >>> >&g

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

2018-05-09 Thread Marcos Douglas B. Santos
blished, just to see that works. Then, I start to use fixes_3_0. I supposed that any fixes in trunk must be applied in fixes, don't? Well, if I'm wrong, could you do that to this bug? Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.

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 <mich...@freepascal.org> wrote: > > > On Tue, 8 May 2018, Marcos Douglas B. Santos wrote: > >> On Mon, May 7, 2018 at 6:05 PM, Michael Van Canneyt >> <mich...@freepascal.org> wrote: >>> >>>

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 <mich...@freepascal.org> wrote: > > > On Mon, 7 May 2018, Marcos Douglas B. Santos wrote: > >>> Application.Run; >>> end. >>> >>> ===END=== >>> >>> My environment is: La

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 <m...@delfire.net> wrote: > On Sat, May 5, 2018 at 11:51 AM, Michael Van Canneyt > <mich...@freepascal.org> wrote: >> >> >> On Sat, 5 May 2018, Marcos Douglas B. Santos wrote: >> >>>

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 <m...@delfire.net> wrote: > On Sun, May 6, 2018 at 6:05 PM, leledumbo via fpc-pascal > <fpc-pascal@lists.freepascal.org> wrote: >>> Create a call that calls Application.Terminate. >> >> I just

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

2018-05-06 Thread Marcos Douglas B. Santos
th heaptrc? About my test, do you have the same memleak? Thanks. Best, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <mich...@freepascal.org> 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 t

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

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

2018-05-06 Thread Marcos Douglas B. Santos
bly miss some units. Check your installation of fpc." After the installation, I can see these directories: 1. /bin/i386-win32 2. /units/i386-win32 3. /units/x86_64-win64 Should I have the same `/bin/x86_64-win64` directory after the compilation? What am I missing here? Best, Marcos Dougla

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

2018-05-06 Thread Marcos Douglas B. Santos
be useful but I don't think it's "must have" (when I don't > consider Delphi compat.). I've said "would..." and "could..." Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2018-05-06 Thread Marcos Douglas B. Santos
`fpc.web, fpc.xml, ...` but I know that we need to maintain the compatibility with Delphi using the same names... However, Lazarus could do that — we just need a replace in the code. By the way, good work! Best, Marcos Douglas ___ fpc-pascal maill

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

2018-05-05 Thread Marcos Douglas B. Santos
/win64 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <vojtech.ci...@atlas.cz> 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 ___

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 -

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

2018-03-11 Thread Marcos Douglas B. Santos
is the problem... All right, try to change your copy like this: ===begin=== Bar := TBar.Create; try if Supports(Bar, IBar) then Writeln(Bar.Name + ' supports...'); finally Bar.Free; << no Free end; ===end=== Are you still se

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 <vojtech.ci...@atlas.cz> 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 interfac

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

2018-03-11 Thread Marcos Douglas B. Santos
Bar.Free; end; end. ===end=== Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <m...@delfire.net> wrote: > Hi, > I've updated my F

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

2018-01-22 Thread Marcos Douglas B. Santos
if I compile using FPC 37459 rev. I already scanned all my computer, starting in FPC/Lazarus directories but AVG didn't found anything. The problem is just when I'm compiling. Thoughts? Best regards, Marcos Douglas ___ fpc-pascal maillist

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 <fpc-pascal@lists.freepascal.org> wrote: > Am 06.01.2018 17:31 schrieb "Marcos Douglas B. Santos" <m...@delfire.net>: > > Does FPC have support for final methods? > > Please see -> > http:/

[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/

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

2018-01-04 Thread Marcos Douglas B. Santos
rvice. My service encapsulates the WS. As I wrote previously to Michael, if the WS do not respond in "X seconds", my service should forget it and return a "code Y". Best, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.fr

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

2018-01-04 Thread Marcos Douglas B. Santos
requirement is: If WS do not respond in "X seconds", forget it and return the "code Y". Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2018-01-04 Thread Marcos Douglas B. Santos
is: Can I consume this WS with a max time to wait? Would be better doing this in the code instead of change parameters in the webserver. But, if there is no (simple) way to do that in the code, the webserver more used to this app is Microsoft IIS. Best regards, Marc

Re: [fpc-pascal] fpc2js

2017-12-06 Thread Marcos Douglas B. Santos
all. > o It does not include the command to call pas2js compiler. > o Solving the previous remarks, the compilation fails with the message > "plaintestreport.pas(166,6) Error: identifier not found "IRound"" > > > I will try

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 <mailingli...@geldenhuys.co.uk> 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, Ma

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 <mailingli...@geldenhuys.co.uk> 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 Pasc

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

2017-11-30 Thread Marcos Douglas B. Santos
... > When I walked to school, we learned Pascal, I am suspicious, that this does > not happen nowadays. Yes. And I think people are thinking in Object Pascal as Turbo Pascal or something like that. I believe most don't know about FPC as a modern compiler. Is so simpler using Object Pascal e

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

2017-11-29 Thread Marcos Douglas B. Santos
t of > the box. > > Without the need for compiling fpc. > > Without the need for an internet connection. Have you already seen fpcup -> http://wiki.freepascal.org/fpcup ? Best, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lis

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

2017-11-29 Thread Marcos Douglas B. Santos
> before they had their own compiler ready. I believe XE2 shipped with a FPC > compiler. So FPC functionality (the compiler at least) must have enough to > make it usable. We have the compiler, now it just missing the widgets... Best regards, Marcos Douglas __

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

2017-11-29 Thread Marcos Douglas B. Santos
scal nowadays". I hear something like this two times per month. :\ However, we know the potential of Object Pascal as a language to do anything. If we have a better marketing, maybe more programmers could have more interest to use the language. Best, Marcos Douglas __

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 <mich...@freepascal.org> wrote: > > > On Wed, 29 Nov 2017, Marcos Douglas B. Santos wrote: > >> On Wed, Nov 29, 2017 at 11:10 AM, Michael Van Canneyt >> <mich...@freepascal.org> wrote: >>

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

2017-11-29 Thread Marcos Douglas B. Santos
2js included in that version? Best, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-11-29 Thread Marcos Douglas B. Santos
the compile step. > > This is how we compile web projects currently. What? I thought that you use FPC for web projects... Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-11-29 Thread Marcos Douglas B. Santos
because it will still missing the components. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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" <mse00...@gmail.com> 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 ___

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

2017-11-08 Thread Marcos Douglas B. Santos
quite impressed with the processing power of fastcgi fcl-web > applications: they consume little memory (less than 2 MB per instance) and > are very fast to process the requests. It is fast even on Windows+IIS. ;) Best regards, Marcos Douglas __

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
t; That is often what I use type aliases for, aliasing code that has been > factored out of an unit back in. > > > Okay, that's an acceptable use case ^^' So, can we have this in the next version? :) Best regards, Marcos Douglas ___ fpc-pasc

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 <r...@thealchemistguild.com> wrote: > > >> On Oct 23, 2017, at 9:14 AM, Marcos Douglas B. Santos <m...@delfire.net> >> wrote: >> >> How do the same with generic classes, using mode delphi? > > I think

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
r... >> >> That said I also don't see the use of type aliases for generics... > > How about a simple > > > type = anotherunit.; > > ? > > That is often what I use type aliases for, aliasing code that has been > factored out of an unit back in.

[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

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

2017-10-15 Thread Marcos Douglas B. Santos
with this project is that it is not updated since 3 years. My concern is to use something that is no longer updated. Would be better if the original author, who made this version, update the sources. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@li

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

2017-10-15 Thread Marcos Douglas B. Santos
which was released in Feb/2006. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-10-15 Thread Marcos Douglas B. Santos
c work with the visual components, > and it starts to look really good. Looks a huge work! Thanks for that preview. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <fpc-pascal@lists.freepascal.org> wrote: > Marcos Douglas B. Santos wrote >> I didn't found... In this path \packages\googleapi\examples only >> exists \generator directory. :( >> >> Trunk, rev 37453. >

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 <mich...@freepascal.org> 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 versio

Re: [fpc-pascal] Const params question

2017-10-11 Thread Marcos Douglas B. Santos
On Wed, Oct 11, 2017 at 9:33 AM, <pasc...@piments.com> 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/pr

[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 <mich...@freepascal.org> 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 purpos

Re: [fpc-pascal] Const params question

2017-10-11 Thread Marcos Douglas B. Santos
functions that >> take records as arguments and I don’t want copying to the stack so I’ve >> been using @ but maybe const is just as good? Thanks. > > > No, you need constref then. Is constref compatible with Delphi? Regards, Marcos Douglas ___

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 <hnb.c...@gmail.com> wrote: > 2017-10-09 14:43 GMT+02:00 Marcos Douglas B. Santos <m...@delfire.net>: >> >> This TAutoFree just "put" the "finally" and call .Free for an array of >> objects

Re: [fpc-pascal] Managed properties idea

2017-10-09 Thread Marcos Douglas B. Santos
o > begin > ... > end; > ===code end=== > > somehow similar in usage like "using" from C# This TAutoFree just "put" the "finally" and call .Free for an array of objects or does it something else? Could you send the link of the implementation? B

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 <michalis.ka...@gmail.com> wrote: > 2017-10-06 20:52 GMT+02:00 Marcos Douglas B. Santos <m...@delfire.net>: > [...] >>> In this case, in which you indeed want two of these features simultaneously, >>> I advise

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 <fpc-pascal@lists.freepascal.org> wrote: > Am 06.10.2017 20:52 schrieb "Marcos Douglas B. Santos" <m...@delfire.net>: >> > And reference counting like in e.g. C++ "shared pointers", that can >

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 <michalis.ka...@gmail.com> wrote: > > 05.10.2017 2:07 PM "Marcos Douglas B. Santos" <m...@delfire.net> napisał(a): > > [...] > As Sven told you, just use COM Interfaces. > Look this

Re: [fpc-pascal] Managed properties idea

2017-10-05 Thread Marcos Douglas B. Santos
pay attention when to author says "Ugly (COM) interfaces" because it is not. :) Really, it is not. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-09-27 Thread Marcos Douglas B. Santos
any problems. These apps are fast and I can use shared code between Desktop and Web. Very good. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

2017-09-06 Thread Marcos Douglas B. Santos
e Translator). Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 <fpc-pascal@lists.freepascal.org> 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

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

2017-08-23 Thread Marcos Douglas B. Santos
mentation not by a class, but by a "interface helper". It's like default methods in Java(?) that we have code inside an interface... Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-08-23 Thread Marcos Douglas B. Santos
On Wed, Aug 23, 2017 at 12:13 PM, Sven Barth via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote: > Am 23.08.2017 16:58 schrieb "Marcos Douglas B. Santos" <m...@delfire.net>: >> >> Is this compatible with Delphi? > > Interface helpers are only sup

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

2017-08-23 Thread Marcos Douglas B. Santos
gt; function ToString: string; > end; I didn't know that helpers could be used in enums too. Great. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-08-23 Thread Marcos Douglas B. Santos
ve small interfaces but add some methods in just some places, extending such interfaces. Is this compatible with Delphi? Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-08-23 Thread Marcos Douglas B. Santos
original method. Am I right? (please say yes) Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

  1   2   3   4   5   6   7   >