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
that all these new features would NOT break the "philosophy of > > the language," unlike what has been added over the years. > > As most people on the lists know, my concern for the "philosophy of > the language" is big. I make no secret of it. &g

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

2024-11-16 Thread Marcos Douglas B. Santos via fpc-pascal
he "philosophy of the language," unlike what has been added over the years. In short, if the language retained its philosophy, its simplicity, while adding only what the world demands today (web and mobile apps), we wouldn't need to spend time debating how to attract new developers to t

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
gt; project. > > > > unit TOML; > > interface > > uses > > TOMLParser in '/sources', > > TOMLTypes in '/sources'; > > uses > TOMLParser in 'sources/TOMLParser.pas', > TOMLTypes in 'sources/TOMLTypes.pas'; > &g

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

2019-06-27 Thread Marcos Douglas B. Santos
;t have examples 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
ortuguese: https://objectpascalprogramming.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
s linklib, 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
unctions, 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, Marc

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

2018-11-02 Thread Marcos Douglas B. Santos
ssage box, or how to use 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/~

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 con

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

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
tried 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 > 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
ascal.org/pipermail/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
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
and over again, are 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 but

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

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

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
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 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
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.freepascal.org h

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
ave 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 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
will probably 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, Mar

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

2018-05-06 Thread Marcos Douglas B. Santos
7;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
w 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 maillist - fpc-pascal@lists.fr

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

2018-05-05 Thread Marcos Douglas B. Santos
764 FPC 3.0.4 i386-win32-win32/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 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

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

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

2018-03-11 Thread Marcos Douglas B. Santos
, 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 seeing an AV? Marcos Douglas ___

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] Using Supports() I got an AV... bug?

2018-03-11 Thread Marcos Douglas B. Santos
..'); finally 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 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
not occur 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 ___ f

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/

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

2018-01-04 Thread Marcos Douglas B. Santos
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.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2018-01-04 Thread Marcos Douglas B. Santos
f 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
s 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 to convert a little JavaScript project I have to pascal and use

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 ___

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
ked 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 environ

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

2017-11-29 Thread Marcos Douglas B. Santos
out 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@lists.freepascal.org http://lists.free

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

2017-11-29 Thread Marcos Douglas B. Santos
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 ___ fpc-pascal maillist

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

2017-11-29 Thread Marcos Douglas B. Santos
omething 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 ___ fpc

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? B

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

2017-11-29 Thread Marcos Douglas B. Santos
pops up after a IDE crash doesn't work (the irony), code syntax check >> is broken, can't customise the shortcuts etc. I so miss Lazarus and FPC! >> [/dreaming] > > > You can. In the project options, set the Pre-compiler command to DCC32. > Uncheck the compil

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

2017-11-29 Thread Marcos Douglas B. Santos
the bug reporting dialog > that pops up after a IDE crash doesn't work (the irony), code syntax check > is broken, can't customise the shortcuts etc. I so miss Lazarus and FPC! > [/dreaming] Even if Lazarus could support Delphi dcc32, would not be enough because it will still m

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 mailli

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

2017-11-08 Thread Marcos Douglas B. Santos
cl-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 ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
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-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

[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
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@lists.freepascal.org http://lists.fr

[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
ponents, > 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 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] 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
cords 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 ___ fpc-pascal mail

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
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? Best regards, Marcos Douglas ___

Re: [fpc-pascal] TBufDataset vs TClientDataset

2017-10-08 Thread Marcos Douglas B. Santos
nks: - http://lazarus.lazarus.freepascal.narkive.com/Fe8TZqtR/tbufdataset-tmemdataset-and-a-big-headache - http://forum.lazarus.freepascal.org/index.php?topic=30454.0 Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

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

2017-10-08 Thread Marcos Douglas B. Santos
nk you. Most developers are using single .inc file that contains all directives for the whole project. You only need to remember to include this file in all units of your projects. Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.free

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
till like that syntax > option. > As Sven told you, just use COM Interfaces. Look this explanation -> http://castle-engine.io/modern_pascal_introduction.html#_corba_and_com_types_of_interfaces but don't pay attention when to author says "Ugly (COM

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

2017-09-27 Thread Marcos Douglas B. Santos
ps 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 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
(use Google 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 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   3   4   5   6   7   8   >