Re: [fpc-pascal] DBLib was updated, rev 35345, where I can found the new dblib.dll?

2017-01-31 Thread Marcos Douglas B. Santos
On Tue, Jan 31, 2017 at 4:22 AM, LacaK wrote: > >> >>> Hi, >>> >>> I'm using FPC 3.0.1. >>> I've updated my sources and saw that dblib was updated, specifically >>> in revision 35345. >>> >>> My doubts are: >>> >>> 1. I need to update my dblib.dll too? > > no > >>> 2. If so, I

Re: [fpc-pascal] ppcjvm issues

2017-01-29 Thread Marcos Douglas B. Santos
On Sun, Jan 29, 2017 at 6:04 AM, Lars wrote: > Another interesting idea, from all this discussion, is whether a mixed > Garbage Collected/Manually Collected language could exist. Object Pascal has this. Well, a kind of this idea, but works (almost) perfectly. For "garbage

Re: [fpc-pascal] DBLib was updated, rev 35345, where I can found the new dblib.dll?

2017-01-29 Thread Marcos Douglas B. Santos
On Sun, Jan 29, 2017 at 8:56 AM, Michael Van Canneyt <mich...@freepascal.org> wrote: > > > On Sat, 28 Jan 2017, Marcos Douglas B. Santos wrote: > >> Hi, >> >> I'm using FPC 3.0.1. >> I've updated my sources and saw that dblib was updated, specific

[fpc-pascal] DBLib was updated, rev 35345, where I can found the new dblib.dll?

2017-01-28 Thread Marcos Douglas B. Santos
Hi, I'm using FPC 3.0.1. I've updated my sources and saw that dblib was updated, specifically in revision 35345. My doubts are: 1. I need to update my dblib.dll too? 2. If so, I could get this new version compiled in some FTP? I checked this link below and didn't find a new compiled version.

Re: [fpc-pascal] inherited interfaces not seen by queryinterface / supports

2016-10-27 Thread Marcos Douglas B. Santos
On Thu, Oct 27, 2016 at 10:18 AM, Graeme Geldenhuys wrote: >> It is a "bug by design". > > The worst kind! Yeah, you're right. >> Actually, I think this should be corrected in both modes (COM and CORBA). > > Indeed, and even if it is fixed in FPC, it shouldn’t

Re: [fpc-pascal] inherited interfaces not seen by queryinterface / supports

2016-10-27 Thread Marcos Douglas B. Santos
On Thu, Oct 27, 2016 at 1:12 AM, Graeme Geldenhuys wrote: > In the Stack Overflow link I posted - further down the page - a person > named Jasper mentions that in is QueryInterface implementation bug where > QueryInterface on checks for valid Interface signatures in

Re: [fpc-pascal] How to know the encoding of a string?

2016-10-18 Thread Marcos Douglas B. Santos
On Mon, Oct 17, 2016 at 11:19 AM, Jonas Maebe wrote: > There are some heuristics you could try to apply (see e.g. > http://chsdet.sourceforge.net ), but in general it is impossible to know > for sure what encoding has been used Interesting project, I'll take a look,

Re: [fpc-pascal] How to know the encoding of a string?

2016-10-18 Thread Marcos Douglas B. Santos
On Mon, Oct 17, 2016 at 2:47 PM, Bart wrote: > As explained there is no certain way. > Lazarus comes with lconvencoding unit which has a guessencoding function. > Maybe this can be of some help to you? I'd not seen this unit before. Maybe this is the short way to do what I

[fpc-pascal] How to know the encoding of a string?

2016-10-17 Thread Marcos Douglas B. Santos
Hi, Is there a way to know what encoding was used at a string? My system are receiving some files and I don't know the encoding. I would like to know and then, convert it. Best regards, Marcos Douglas ___ fpc-pascal maillist -

Re: [fpc-pascal] Bls: Changes to fpWeb...

2017-01-15 Thread Marcos Douglas B. Santos
On Sun, Jan 15, 2017 at 7:45 AM, Michael Van Canneyt wrote: > On Sun, 15 Jan 2017, Mr Bee wrote: > >> Will this new fpWeb be included in the next FPC release? v.3.2? v.3.0.2? >> Thank you. > > > It will not be in 3.0.2; That is already at RC1. > > It probably will end up

Re: [fpc-pascal] Bls: Changes to fpWeb...

2017-01-15 Thread Marcos Douglas B. Santos
On Sun, Jan 15, 2017 at 12:00 PM, Michael Van Canneyt wrote: >> But it will work if we try to use this new package with the current FPC >> version? > > > Yes. OK, thanks. Marcos Douglas ___ fpc-pascal maillist -

Re: [fpc-pascal] Out of scope method?

2017-04-06 Thread Marcos Douglas B. Santos
On Thu, Apr 6, 2017 at 11:48 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > >> On Apr 6, 2017, at 9:42 PM, Marcos Douglas B. Santos <m...@delfire.net> >> wrote: >> >> Lose type checking? >> Of course not. You still use the same language, in

Re: [fpc-pascal] Out of scope method?

2017-04-06 Thread Marcos Douglas B. Santos
Hi Ryan, On Thu, Apr 6, 2017 at 7:28 AM, Ryan Joseph wrote: > Hmm, that sounds like a hack. Is the verdict this is generally a bad idea? I > was > just curious about it and it seems like a reasonable feature a language may > have. I can guarantee that reference

Re: [fpc-pascal] Out of scope method?

2017-04-06 Thread Marcos Douglas B. Santos
On Thu, Apr 6, 2017 at 10:41 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > >> On Apr 6, 2017, at 8:13 PM, Marcos Douglas B. Santos <m...@delfire.net> >> wrote: >> >> I can guarantee that reference counting is not a bad idea. >> I have been

Re: [fpc-pascal] Out of scope method?

2017-04-06 Thread Marcos Douglas B. Santos
On Thu, Apr 6, 2017 at 11:01 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > > > > On Apr 6, 2017, at 8:54 PM, Marcos Douglas B. Santos <m...@delfire.net> > > wrote: > > > > Pretty clear, right? > > > > Because this "problem"

Re: [fpc-pascal] Out of scope method?

2017-04-06 Thread Marcos Douglas B. Santos
On Thu, Apr 6, 2017 at 12:23 PM, Ryan Joseph wrote: >> In fact is the opposite: >> TAction needs to have all methods that IAction have. >> This TAction class in the example is not the same class in RTL. >> >> You shouldn't have so many methods in just one class. >> So,

Re: [fpc-pascal] Const attributes

2017-07-31 Thread Marcos Douglas B. Santos
On Mon, Jul 31, 2017 at 6:25 AM, Felipe Monteiro de Carvalho wrote: > On Sun, Jul 30, 2017 at 10:47 PM, Sven Barth via fpc-pascal > wrote: >> (though if one would restrict the assignments to the constructors itself >> without

[fpc-pascal] XML: Differences between Delphi and FPC

2017-07-29 Thread Marcos Douglas B. Santos
Hi, FPC/Lazarus always tried stay compatible with Delphi... thus, why the FPC XML classes is so different than Delphi classes? Delphi XML is interface-based. There exists IXMLDocument, IXMLNode and so on. FPC has just classes. I have a FPC/Lazarus project that will be compatible with Delphi. I

Re: [fpc-pascal] XML: Differences between Delphi and FPC

2017-07-30 Thread Marcos Douglas B. Santos
On Sun, Jul 30, 2017 at 5:06 AM, Michael Van Canneyt <mich...@freepascal.org> wrote: > > > On Sat, 29 Jul 2017, Marcos Douglas B. Santos wrote: > >> FPC/Lazarus always tried stay compatible with Delphi... thus, why the >> FPC XML classes is so different than Delphi

Re: [fpc-pascal] XML: Differences between Delphi and FPC

2017-07-30 Thread Marcos Douglas B. Santos
On Sun, Jul 30, 2017 at 4:30 AM, Sven Barth via fpc-pascal wrote: >> I have a FPC/Lazarus project that will be compatible with Delphi. I >> would like to know whether I need to create wrappers to encapsulate >> the differences between them or there is a simple way

[fpc-pascal] FPCUnit/DUnit: How abort all other tests?

2017-07-22 Thread Marcos Douglas B. Santos
Hi, I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail, will be a waste of time to continue. Best regards, Marcos Douglas ___

Re: [fpc-pascal] FPCUnit/DUnit: How abort all other tests?

2017-07-24 Thread Marcos Douglas B. Santos
On Sat, Jul 22, 2017 at 9:35 PM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > On 2017-07-22 21:50, Marcos Douglas B. Santos wrote: >> >> I would like to know if there is a way to abort all other test and an >> specific one fail. I mean, i

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-06 Thread Marcos Douglas B. Santos
On Thu, Jul 6, 2017 at 11:13 AM, Graeme Geldenhuys wrote: > > Imagine if FPC had type inference and multi-line strings, neither very exotic > features. The code then becomes: > > = > var query := '''SELECT

Re: [fpc-pascal] Mutual Reference Interfaces and Memory Leaks

2017-06-27 Thread Marcos Douglas B. Santos
On Tue, Jun 27, 2017 at 11:52 AM, African Wild Dog wrote: > There are some parts of your article which are in English and you have added > a link to another article, so it helped me a lot. Thanks for your reply. You are welcome. Regards, Marcos Douglas

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 7:21 PM, Sven Barth via fpc-pascal wrote: >> If I remember well, PChar and even String is different between these >> modes, right? The compiler will convert strings between them or this >> is not a problem? Even using LCL? > > The default

[fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
Hi, I would like to write some packages that should work in FPC and Delphi. I know that I will need to use {mode delphi} to do that. My ask is: Is there some disadvantages using this mode? I mean, is there something that we only can do in mode objfpc but not in mode delphi, or is it just about

Re: [fpc-pascal] Const attributes

2017-07-30 Thread Marcos Douglas B. Santos
On Sun, Jul 30, 2017 at 5:47 PM, Sven Barth via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote: > On 30.07.2017 20:55, Marcos Douglas B. Santos wrote: >> >> I would like to instantiate my attribute only once inside constructor >> and then it will be "cons

Re: [fpc-pascal] Const attributes

2017-07-30 Thread Marcos Douglas B. Santos
On Sun, Jul 30, 2017 at 1:46 PM, Maciej Izak <hnb.c...@gmail.com> wrote: > 2017-07-30 18:37 GMT+02:00 Marcos Douglas B. Santos <m...@delfire.net>: >> >> 1. Is this by design? > > > Yes. To disallow this you need to use {$J-} directive. I know that we can use th

[fpc-pascal] Const attributes

2017-07-30 Thread Marcos Douglas B. Santos
The following code is compilable. I'm using a private const with type defined and I can change it in the constructor. 1. Is this by design? 2. Is there a way to declare attributes "final" like Java does? === begin === type TFoo = class private const INT: Integer = 0; public

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

2017-08-23 Thread Marcos Douglas B. Santos
On Wed, Aug 23, 2017 at 6:18 AM, Sven Barth via fpc-pascal wrote: > Am 23.08.2017 09:42 schrieb "Michael Van Canneyt" : >> >> >> Any other examples ? > > It's the same as for the other kinds of helpers: being syntactic sugar. > E.g. if I

Re: [fpc-pascal] Mutual Reference Interfaces and Memory Leaks

2017-06-26 Thread Marcos Douglas B. Santos
On Mon, Jun 26, 2017 at 12:39 PM, African Wild Dog wrote: > Hello, > > What is the recommended way to avoid memory leaks in mutual interface > references? > > From delphi 10.1 Berlin it is possible to use [unsafe] e [weak] attributes. >

[fpc-pascal] Browser and exe

2017-05-22 Thread Marcos Douglas B. Santos
Hi, If you have some apps or components which was written in Object Pascal and you would like to use them in Web applications (client-side, previously installed) what is the best option to choose nowadays? My users use Windows so, I thought in ActiveX. It works, but I think Chrome do not use

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 6:23 AM, leledumbo via fpc-pascal wrote: >> Is there a way to call an Exe (previously installed, no problem with that) > to interact with an Exe, working in IE and Chrome? > > Not from client side AFAIK. You'll need to create a local server

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 8:04 AM, Felipe Monteiro de Carvalho wrote: > That's why Model-View-Controller is such a great design pattern. If > you use MVC you can simply create a new View component and keep the > Model and Controller without changes. > > You can

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 10:34 AM, Felipe Monteiro de Carvalho <felipemonteiro.carva...@gmail.com> wrote: > On Tue, May 23, 2017 at 2:39 PM, Marcos Douglas B. Santos > <m...@delfire.net> wrote: >> I can't. For security reasons I need to have an app installed on client.

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 11:02 PM, <nore...@z505.com> wrote: > On 2017-05-23 20:52, Marcos Douglas B. Santos wrote: >> ... >> I'm still thinking on these options: >> >> 1. NativeMessaging: >> https://developer.chrome.com/extensions/nativeMessaging >>

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 10:40 AM, Graeme Geldenhuys wrote: > I've done this before in a project for one of my previous employers. Out > desktop application did user logins, reporting and for some functionality > offloaded it to the web browser (which was launched

Re: [fpc-pascal] Browser and exe

2017-05-24 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 11:07 AM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > n 2017-05-24 14:52, Marcos Douglas B. Santos wrote: >> >> What do you propose to use to make an embedded HTTP server nowadays? > > > I really like Indy components. The

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Marcos Douglas B. Santos
On Tue, May 23, 2017 at 9:29 PM, wrote: > Exe is a security hazard that could barf up a person's hard drive instantly > or create viruses.. I understand these security reasons and I agree, of course... But this Exe that I am talking about should be installed for all machines

Re: [fpc-pascal] Browser and exe

2017-05-26 Thread Marcos Douglas B. Santos
On Fri, May 26, 2017 at 1:27 AM, wrote: >> But I meant, how do you know if another app is already using a port >> that you want to use? > > > This is the reason I think web servers are the wrong way to go for any > desktop application (Golang is going crazy with everything

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Marcos Douglas B. Santos
On Wed, May 24, 2017 at 4:23 PM, Graeme Geldenhuys wrote: >> 2. How did you garantee that others applications aren't being using >> the same port as your application to avoind conflicts? > > > I looked at the official IANA list of registered port numbers and chose a

Re: [fpc-pascal] Browser and exe

2017-05-25 Thread Marcos Douglas B. Santos
On Thu, May 25, 2017 at 10:58 AM, Sven Barth via fpc-pascal wrote: >> But I meant, how do you know if another app is already using a port >> that you want to use? > > You'll get an error by the OS if someone is already listening on the > port that you want to

Re: [fpc-pascal] Interfaces works in FPC 2.6.4 but not in 3.0.2

2017-05-07 Thread Marcos Douglas B. Santos
On Sat, May 6, 2017 at 7:37 PM, Graeme Geldenhuys wrote: > var > cmd: ICmdLineParams; > begin > if Supports(fpgApplication, ICmdLineParams, cmd) then // Never works > begin > ... > end; > end. > > > fpgApplication is a global instance of

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 2:10 PM, Michael Van Canneyt wrote: > > Hi, >> >> I would like to write some packages that should work in FPC and Delphi. >> I know that I will need to use {mode delphi} to do that. >> >> My ask is: Is there some disadvantages using this mode? >>

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 5:23 PM, Marco van de Voort <mar...@stack.nl> wrote: > > In our previous episode, Marcos Douglas B. Santos said: > > I would like to write some packages that should work in FPC and Delphi. > > I know that I will need to use {mode delphi} to

Re: [fpc-pascal] Is there some disadvantages using mode Delphi?

2017-04-29 Thread Marcos Douglas B. Santos
On Sat, Apr 29, 2017 at 10:37 PM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > On 2017-04-29 21:18, Marcos Douglas B. Santos wrote: >> My concern is make my code cross between FPC and Delphi, but loosing some >> feature that exists only in FPC. > > My q

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

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

[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

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

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

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

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

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.

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

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

2017-08-23 Thread Marcos Douglas B. Santos
On Wed, Aug 23, 2017 at 11:00 AM, Anthony Walter wrote: > Marco, it doesn't work that way. > > Type helpers simply allow you to extend an existing type with new methods > and/or properties. When you declare a type helper you extend all instances > of said type given that: > > A)

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
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
On Wed, Aug 23, 2017 at 11:00 AM, Anthony Walter wrote: > Marcos, it doesn't work that way. > > Type helpers simply allow you to extend an existing type with new methods > and/or properties. When you declare a type helper you extend all instances > of said type given that: > >

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

2017-08-23 Thread Marcos Douglas B. Santos
On Wed, Aug 23, 2017 at 11:07 AM, Anthony Walter wrote: > Here is another example: > > type > TDay = (Monday = 0, Tuesday, Wednesday, Thursday, Friday, Saturday, > Sunday); > > TDayHelper = record helper for TDay > function AsByte: Byte; > function ToString: string;

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

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

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 ___

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

  1   2   >