Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Marcos Douglas
... but problems can happen eg: You can add a new unit, maybe a 3rd-party, called A3rdFunc.pas that have the same function (GetHandler) what you already use in another unit called MyFunc.pas. Someday you will add the A3rdFunc unit on 'uses' -- AFTER the MyFunc -- and no

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Marcos Douglas
On Tue, Oct 29, 2013 at 12:55 PM, Reimar Grabowski wrote: > On Tue, 29 Oct 2013 13:22:47 -0200 > Marcos Douglas wrote: > >> Do you (all) use prefix in Procedures and/or Functions too? ;-) > Nope, we use classes and methods instead of global procedures and functions.

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Marcos Douglas
[offtopic] Another type of conflict happens -- but no one talks about it -- using procedure/function with the same parameters in different units. Eg: GetHandler(); If you use two units that have a GetHandler function, in a third unit, you have a trouble. Do you (all) use prefix in Procedures and/or Functions too? ;-) Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Marcos Douglas
ic: I personally find it horrible to call a unit "classes" (it's > fine for RTL, since it's started this way, but any other library - it is > horrible). Nobody calls their units like "functions" or > "functionsandprodures" (t

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-29 Thread Marcos Douglas
even lines of code should be able to say which namespace > they are referring too. +1 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Namespaces Support

2013-10-28 Thread Marcos Douglas
; prefix is used for > MSEgui units, "m" prefix is used for forked FPC units. Maybe it should be > changed to "mfp" or the like. Marcos, what do you think? FPC AFAIK does not > support unit alias option so it will break existing code. The "mfp" prefix so

Re: [fpc-pascal] Re: [Bulk] Re: Namespaces Support

2013-10-28 Thread Marcos Douglas
problem of Pascal language isn't Namespace support because we already have it (unit). The problem, IMHO, is do not have the flexibility to change the 'path' and/or the 'name' of 'Namespaces'. Marcos Douglas ___ fpc-pas

Re: [fpc-pascal] Namespaces Support

2013-10-28 Thread Marcos Douglas
On Mon, Oct 28, 2013 at 9:10 AM, Dmitry Boyarintsev wrote: > On Sun, Oct 27, 2013 at 12:07 PM, Marcos Douglas wrote: >> >> Yes and how I still use D7 at work I still have this problem. >> This problem happen not only for unit names but component names too. I >> can

Re: [fpc-pascal] Namespaces Support

2013-10-27 Thread Marcos Douglas
On Sun, Oct 27, 2013 at 12:04 PM, Fabrício Srdic wrote: > 2013/10/27 Marco van de Voort >> >> In our previous episode, Marcos Douglas said: >> > > Namespaces are only for pseudo hierarchical disambiguation of unit >> > > names in >> > > P

Re: [fpc-pascal] Namespaces Support

2013-10-27 Thread Marcos Douglas
On Sun, Oct 27, 2013 at 11:59 AM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> > Namespaces are only for pseudo hierarchical disambiguation of unit names in >> > Pascal. >> >> Very true. I agree with everything. >> BUT, IMHO,

Re: [fpc-pascal] Namespaces Support

2013-10-27 Thread Marcos Douglas
the same unit name. In that case I can not add 2 units with the same name in my project. So, only in that case, we could use 'namespaces' to 'rename' these units only for use in our projects without change the original source. Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-09-30 Thread Marcos Douglas
On Mon, Sep 30, 2013 at 8:09 AM, Dennis Poon wrote: > Since TBufDataSet is in-memory, to speed things up, how can I directly > access the N'th record and M'th field's value as Variant? > [...] You can use buf.RecNo and buf.FieldByName('field_name')

Re: [fpc-pascal] FPCUnit test + raise E;

2013-09-23 Thread Marcos Douglas
On Thu, Sep 19, 2013 at 1:44 AM, Sven Barth wrote: > Am 18.09.2013 23:34 schrieb "Marcos Douglas" : > > >> >> On Tue, Sep 17, 2013 at 2:41 PM, Sven Barth >> wrote: >> > On 17.09.2013 17:27, Marcos Douglas wrote: >> >> >>

Re: [fpc-pascal] FPCUnit test + raise E;

2013-09-18 Thread Marcos Douglas
On Tue, Sep 17, 2013 at 2:41 PM, Sven Barth wrote: > On 17.09.2013 17:27, Marcos Douglas wrote: >> >> On Tue, Sep 17, 2013 at 12:18 PM, Marcos Douglas wrote: >>>> >>>> Another thing you could try (just for testing): change your exception >>>> ha

Re: [fpc-pascal] FPCUnit test + raise E;

2013-09-17 Thread Marcos Douglas
On Tue, Sep 17, 2013 at 12:18 PM, Marcos Douglas wrote: > On Sun, Sep 15, 2013 at 4:25 PM, Sven Barth > wrote: >> On 15.09.2013 13:05, Marcos Douglas wrote: >>> >>> [[cut]] >>> >>> >>> I tried. No makes difference. >>> (cou

Re: [fpc-pascal] FPCUnit test + raise E;

2013-09-15 Thread Marcos Douglas
On Sun, Sep 15, 2013 at 6:56 AM, Sven Barth wrote: > On 15.09.2013 03:21, Marcos Douglas wrote: >> >> Hi, >> >> 1) I have a code like that: >> >> procedure TghSQLConnector.Connect; >> begin >>try >> FLib.Connect; >>

[fpc-pascal] FPCUnit test + raise E;

2013-09-14 Thread Marcos Douglas
t address 40B758 Can you explain this? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: FPCUnit test + raise E;

2013-09-14 Thread Marcos Douglas
On Sat, Sep 14, 2013 at 10:21 PM, Marcos Douglas wrote: > Hi, > > 1) I have a code like that: > > procedure TghSQLConnector.Connect; > begin > try > FLib.Connect; > except > on E: Exception do > DoOnException(E); > end; > end; > &

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Marcos Douglas
On Sat, Jun 22, 2013 at 10:39 AM, Ludo Brands wrote: > On 06/22/2013 03:20 PM, Marcos Douglas wrote: >> On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: >>> Can you confirm it works with dbsetlname(FDBLogin, PChar('MyApp'), 5) ? >>> If that is the case I&

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Marcos Douglas
On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: > On 06/21/2013 09:12 PM, Marcos Douglas wrote: >> On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas wrote: >>> On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands wrote: >>>> Ah, just found out that DBSETAPP is wrongl

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas wrote: > On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands wrote: >> On 06/21/2013 08:01 PM, Marcos Douglas wrote: >> >>> Worked but I have another problem: >>> To connect in DB of my client I need to pass the Applicati

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands wrote: > On 06/21/2013 08:01 PM, Marcos Douglas wrote: > >> Worked but I have another problem: >> To connect in DB of my client I need to pass the Application Name parameter. >> I tried to use Params property but didn&#x

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 2:25 PM, Ludo Brands wrote: > On 06/21/2013 04:14 PM, Marcos Douglas wrote: >> On Fri, Jun 21, 2013 at 10:38 AM, Marcos Douglas wrote: >>> Hi, >>> >>> Is possible to use "instance name" in host connection like bellow? >>

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 11:16 AM, Michael Van Canneyt wrote: > > > On Fri, 21 Jun 2013, Marcos Douglas wrote: > >> On Fri, Jun 21, 2013 at 10:38 AM, Marcos Douglas wrote: >>> >>> Hi, >>> >>> Is possible to use "instance name" in ho

Re: [fpc-pascal] SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 11:10 AM, Michael Van Canneyt wrote: > > > On Fri, 21 Jun 2013, Marcos Douglas wrote: > >> Hi, >> >> Is possible to use "instance name" in host connection like bellow? >> server001\instanceABC > > > Small linguist

[fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 10:38 AM, Marcos Douglas wrote: > Hi, > > Is possible to use "instance name" in host connection like bellow? > server001\instanceABC > > I'm using FPC 2.6.2 > > Thanks, > Marcos Douglas The error is: Error 20002 Adaptive Server co

[fpc-pascal] SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Marcos Douglas
Hi, Is possible to use "instance name" in host connection like bellow? server001\instanceABC I'm using FPC 2.6.2 Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-21 Thread Marcos Douglas
On Fri, Jun 21, 2013 at 9:57 AM, waldo kitty wrote: > On 6/20/2013 17:34, Marcos Douglas wrote: >> >> On Wed, Jun 19, 2013 at 12:57 PM, Graeme Geldenhuys >> wrote: >>> >>> Your only [sane] alternative would then be to NOT use TXMLDocument, pray >>

Re: [fpc-pascal] How to save a huge XML?

2013-06-20 Thread Marcos Douglas
On Wed, Jun 19, 2013 at 12:57 PM, Graeme Geldenhuys wrote: > On 19/06/13 13:17, Marcos Douglas wrote: >> >> Yes, but my client wants XML... another process will use it. > > If the "another process" is also under your control, then maybe you can > educate the

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Marcos Douglas
I converted the sources to use simple files calling Assign(Handle, 'path') and Writeln('info'). Works and is faster. Thank you all. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Marcos Douglas
L, as same is even more > strictly defined than HTML. The unit is based in TComponentList and defines > several components for the different tag types used). Interesting. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Marcos Douglas
the use case, XML is by far the worst format anybody > could choose. Yes, but my client wants XML... another process will use it. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 4:37 PM, Zaher Dirkey wrote: > > On Tue, Jun 18, 2013 at 7:59 PM, Marcos Douglas wrote: >> >> >> >> >> >> >> >> >> >> >> > > > What about when opening first time

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 12:21 PM, Zaher Dirkey wrote: > > > On Tue, Jun 18, 2013 at 6:09 PM, Marcos Douglas wrote: >> >> But I continue to keep the XML in memory... >> The easy and fast way as I can see is change the TXMLLogger class to >> write a simple file

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 12:04 PM, Zaher Dirkey wrote: > > On Tue, Jun 18, 2013 at 6:00 PM, Marcos Douglas wrote: >> >> But in that way I will have two process to run. >> I'll write a XML using strings... but thank you. > > > one process, but in function lik

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
for your > client, you can do that without loading it into memory, process it line by > line. But in that way I will have two process to run. I'll write a XML using strings... but thank you. Marcos Douglas ___ fpc-pascal maillist

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 11:01 AM, Michael Van Canneyt wrote: > > > On Tue, 18 Jun 2013, Marcos Douglas wrote: > >> On Tue, Jun 18, 2013 at 10:44 AM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> On Tue, 18 Jun 2013, Marcos Douglas wrote

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 10:49 AM, Antonio Fortuny wrote: > > > Le 18/06/2013 15:42, Marcos Douglas a écrit : > > On Tue, Jun 18, 2013 at 10:32 AM, Michael Van Canneyt > wrote: > > On Tue, 18 Jun 2013, Marcos Douglas wrote: > > On Tue, Jun 18, 2013 at 9:39 AM, Anton

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 10:44 AM, Michael Van Canneyt wrote: > > > On Tue, 18 Jun 2013, Marcos Douglas wrote: > >>> No. The writer already uses a fixed buffer. Your problem is the use of >>> TXMLDocument. >> >> >> Ideas? Maybe do what Antonio Fortun

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 10:32 AM, Michael Van Canneyt wrote: > > > On Tue, 18 Jun 2013, Marcos Douglas wrote: > >> On Tue, Jun 18, 2013 at 9:39 AM, Antonio Fortuny >> wrote: >>> >>> >>> >>> Le 18/06/2013 14:35, Marcos Douglas a écrit :

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
On Tue, Jun 18, 2013 at 9:39 AM, Antonio Fortuny wrote: > > > Le 18/06/2013 14:35, Marcos Douglas a écrit : > > Hi, > > I need to save some huge XML files in HD. > Today I call WriteXMLFile(Doc, AFileName) but I have XML with 5G, 10G.. 30G... > > What the

[fpc-pascal] How to save a huge XML?

2013-06-18 Thread Marcos Douglas
Hi, I need to save some huge XML files in HD. Today I call WriteXMLFile(Doc, AFileName) but I have XML with 5G, 10G.. 30G... What the best way to save "line by line"? Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.free

[fpc-pascal] [ANN] AWS Lib: Pascal implementation of Amazon S3 REST API

2013-06-16 Thread Marcos Douglas
Hi list, I'm glad to announce the 0.0.1 release of AWS Lib. AWS Lib is a Pascal implementation of Amazon S3 REST API for Free Pascal. It is minimalistic, clean and simple. https://github.com/mdbs99/aws Comments are welcome. Thanks. Best regards, Marcos Do

[fpc-pascal] [ANN] Greyhound, a tiny ORM-ish for Free Pascal

2013-06-15 Thread Marcos Douglas
SQLdb (default), ZEOS or whatever you want; - It works with IDENTITY columns (AutoInc) automatic and Sequence values (generators); Plese, see the examples https://github.com/mdbs99/Greyhound/tree/master/examples All comments are welcome, thanks. Best regards, Marcos Douglas PS: I'

[fpc-pascal] Re: AWS S3 RESTAuthentication

2013-06-10 Thread Marcos Douglas
On Mon, Jun 10, 2013 at 9:43 PM, Marcos Douglas wrote: > Hi, > > Someone know how translate the "code" bellow to Pascal? > http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html > > === code === > Authorization = "AWS" + " "

[fpc-pascal] AWS S3 RESTAuthentication

2013-06-10 Thread Marcos Douglas
+ '' + #10// ContentMD5 + '' + #10// ContentType + RfcDateValue + #10 // Date + '' // CanonicalizedAmzHeaders + '/'; //+BucketName; // CanonicalizedResource;

Re: [fpc-pascal] Re: TProcess, Batch script and Windows

2013-05-16 Thread Marcos Douglas
On Thu, May 16, 2013 at 1:31 PM, leledumbo wrote: > Try this trick: Options := [poNewConsole]; ShowWindow := swoHIDE; > Yep. Thanks, I saw... unfortunate a long time after. Thank you. Marcos Douglas ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] TProcess, Batch script and Windows

2013-05-16 Thread Marcos Douglas
On Thu, May 16, 2013 at 12:51 PM, Michael Van Canneyt wrote: > > > On Wed, 15 May 2013, Marcos Douglas wrote: > >> Hi, >> >> I want to execute a batch file on Windows (FPC 2.6.2 and Laz trunk) >> using TProcess class. >> It ONLY works if I use the

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Marcos Douglas
t; style. Ok, I will do some test to know if SQLdb handles the RETURN_VALUE parameter. >> >> Did you try Greyhound? > > > I haven't dig into it yet, but I will try later. Ok > > Thank you! Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Marcos Douglas
On Sun, Apr 21, 2013 at 10:05 PM, Toru Takubo wrote: > > (2013/04/20 23:06), Marcos Douglas wrote: >> >> On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo wrote: >>> >>> (2013/04/19 21:22), Marcos Douglas wrote: >>>> >>>> >>>

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-20 Thread Marcos Douglas
On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo wrote: > (2013/04/19 21:22), Marcos Douglas wrote: >> > (snip) > >>> >>> With analogical thinking, I expected that the following might work >>> for TSQLQuery in FPC: >>> >>&g

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Marcos Douglas
On Fri, Apr 19, 2013 at 9:22 AM, Marcos Douglas wrote: > On Fri, Apr 19, 2013 at 4:26 AM, Toru Takubo wrote: >> Hi Dmitry, >> >> Thank you very much for your advice. I am sure your >> code should work, but unfortunately I can not modify >> the existing stored

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Marcos Douglas
try Greyhound[1] to abstract this. See the example: procedure TForm1.ToolButton9Click(Sender: TObject); var SC: TghSQLClient; DS: TDataSet; begin DS := nil; SC := TghSQLClient.Create(DM.coRemote); try SC.Script.Text := 'declare @param int = :param &

Re: [fpc-pascal] 64 bit cross binutils on a 32 bit OS

2013-04-11 Thread Marcos Douglas
> make[3]: *** [fpmake] Error 1 > > > So the solution to your problem really is > to run a 'distclean' make target before the 'crossinstall' target. Thank you very much, worked! I used "distclean" before, but I don't remember why I remove from my script. Do you know if 'make clean' and 'make distclean' is the same? Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] 64 bit cross binutils on a 32 bit OS

2013-04-11 Thread Marcos Douglas
er/2.7.1/rtl/units/i386-win32 Fatal: Can't find unit process used by fpmkunit Fatal: Compilation aborted make[3]: *** [fpmake] Error 1 make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/packages' make[2]: *** [packages_all] Error 2 make[

Re: [fpc-pascal] Re: Feature proposal: function-based assignment operatorst

2013-03-29 Thread Marcos Douglas
of other things to learn > (different OSs and interfaces). I see no need to add even more to that by > adding features over and over again. Pascal was successful because it was > easy and clear. Now it becomes complex and cluttered. +1 Marcos Douglas __

Re: [fpc-pascal] HMAC_SHA1 and FPC

2013-03-26 Thread Marcos Douglas
On Tue, Mar 26, 2013 at 10:05 AM, Anthony Walter wrote: > On Tue, Mar 26, 2013 at 5:57 AM, Marcos Douglas wrote: >> >> Hi, >> Is possible to make that only using Windows for any lib? >> >> Best regards, >> Marcos Douglas > > > Marcos, > > A

Re: [fpc-pascal] HMAC_SHA1 and FPC

2013-03-26 Thread Marcos Douglas
and libssl.a to a FPC lib path ... > > Now you can compile for Win 32/64 using OpenSSL static lib files. Hi, Is possible to make that only using Windows for any lib? Best regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
On Thu, Mar 21, 2013 at 1:39 PM, silvioprog wrote: > 2013/3/21 Marcos Douglas >> >> On Thu, Mar 21, 2013 at 12:30 PM, silvioprog wrote: >> > 2013/3/21 Sven Barth >> >> >> >> Am 20.03.2013 09:18, schrieb Michael Schnell: >> >> &

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
me code and it works and you want to put this in Brook's sources, I can help you. But if you stay thinking "closed source", please tell now. I keep wondering If you keep thinking it is more worthwhile closed source or open... please tell us so I can be move on. Thank you. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
at 5:18 AM, Michael Schnell wrote: > Of course Android is a rather hot topic in the fpc and Lazarus developer's > forums. There are pages in the fpc / Lazarus Wiki on Android. Michael, I'm talked about AWS http://aws.amazon.com/s3/ Sven, Do you know something about it? Regar

[fpc-pascal] Amazon S3

2013-03-19 Thread Marcos Douglas
Hi, Did someone already worked using Amazon S3 and FreePascal, maybe using Synapse? Is there a project open source for it? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] fpcup for FreeBSD

2013-03-16 Thread Marcos Douglas
> in this case an x86 build ;) > > > Thanks, > Reinier Good job. BTW, I added a link to fpcup in the Greyhound's page. https://github.com/mdbs99/Greyhound/blob/master/README.markdown Thank you for added Greyhound in your project. Best regards, Marcos Douglas _

Re: [fpc-pascal] FPC & Lazarus used for teaching down under

2013-02-28 Thread Marcos Douglas
On Thu, Feb 28, 2013 at 9:54 AM, Howard Page-Clark wrote: > On 28/02/13 12:19, Marcos Douglas wrote: > >> Very good! >> But I'm afraid if someone thinking if Pascal is just for kids 5-9 >> years old... not here, but out there! :) >> >> Thank you for

Re: [fpc-pascal] FPC & Lazarus used for teaching down under

2013-02-28 Thread Marcos Douglas
;m afraid if someone thinking if Pascal is just for kids 5-9 years old... not here, but out there! :) Thank you for share it. Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cast, inheritance, etc

2012-12-04 Thread Marcos Douglas
On Tue, Dec 4, 2012 at 4:53 PM, Sven Barth wrote: > On 04.12.2012 20:03, Marcos Douglas wrote: >> >> Hi, >> >> See the code below. >> My question is: Why the cast worked, considering the c variable is a >> TAClass instance, not a TBClass. > > > As l

[fpc-pascal] Cast, inheritance, etc

2012-12-04 Thread Marcos Douglas
... ok for me. writeln(TBClass(c).GetInfoB) finally c.Free; end; writeln('Done'); end. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Coping a DataSet

2012-12-03 Thread Marcos Douglas
On Mon, Dec 3, 2012 at 2:56 PM, silvioprog wrote: > > 2012/12/3 Marcos Douglas >> >> On Mon, Dec 3, 2012 at 2:32 PM, Michael Van Canneyt >> wrote: >> > >> > >> > On Mon, 3 Dec 2012, Marcos Douglas wrote: >> > >> >> On Mon

Re: [fpc-pascal] Coping a DataSet

2012-12-03 Thread Marcos Douglas
On Mon, Dec 3, 2012 at 2:32 PM, Michael Van Canneyt wrote: > > > On Mon, 3 Dec 2012, Marcos Douglas wrote: > >> On Mon, Dec 3, 2012 at 2:03 PM, wrote: >>> >>> >>> >>> On Mon, 3 Dec 2012, silvioprog wrote: >>> >>

Re: [fpc-pascal] Coping a DataSet

2012-12-03 Thread Marcos Douglas
el. But all descendents use TFieds classes so, why not? I can use a loop and the Append method, but this is not faster. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Coping a DataSet

2012-12-03 Thread Marcos Douglas
Hi, What is the faster way to copy a DataSet to another? The FPC provides some functionality for this? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Marcos Douglas
am, for supporting ARM so well! > > Maybe with the Raspberry Pi and Free Pascal, we can get Object Pascal back > on the map, and in the hands of young developers. After all, Pascal was > initially designed as a teaching language - easy to learn, read and write. Awesom

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-22 Thread Marcos Douglas
On Wed, Aug 22, 2012 at 11:05 AM, Sven Barth wrote: > Am 22.08.2012 12:37, schrieb Timothy Madden: > >> On 08/22/2012 09:57 AM, Marco van de Voort wrote: >>> >>> In our previous episode, Marcos Douglas said: >> >> [...] >>> >>> >>&

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-22 Thread Marcos Douglas
t; any method of any class type (and associated categories) in scope on a > variable of this type. Again, I don't see a way how the proposed mechanism > could be used to tell the compiler which classes it should search and which > not if it should only search fully qualified i

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-22 Thread Marcos Douglas
On Wed, Aug 22, 2012 at 3:57 AM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> Yes, we know too... but how prevent this using third-party libs? >> For example, what do you think if I have a project that have a file >> called lnet.pas? Can

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
Third-party means: you can't change (can't, not want or not have access). Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
an have your own lib; each department can choose the names of your own identifiers and here is the problem. I had many problems using Object Pascal (Delphi) a long time ago. > I never seen that before... Do you use many third-party libs? ;-) Marcos Douglas ___

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
> clause could do a backend switch easily. Yes, this is cool but you can got problems, as Timothy Madden said in this thread. I am not proposing break this feature -- because I use it too! -- but add one more. Marcos Douglas ___ fpc-pascal maillist - f

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
ts the > only possible conflict. Yeah, I understood and I think this is a great idea (too). > Requiring all functions to be allways fully qualified will make the > most commom case worse than current implementation just to be better > for the uncommon case. This

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
On Tue, Aug 21, 2012 at 5:19 PM, Marcos Douglas wrote: > On Tue, Aug 21, 2012 at 4:42 PM, Jorge Aldo G. de F. Junior > wrote: >> 2012/8/21 Marcos Douglas : >>> On Tue, Aug 21, 2012 at 3:08 PM, Marco van de Voort wrote: >>>> In our previous episode, Marcos Do

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
On Tue, Aug 21, 2012 at 4:42 PM, Jorge Aldo G. de F. Junior wrote: > 2012/8/21 Marcos Douglas : >> On Tue, Aug 21, 2012 at 3:08 PM, Marco van de Voort wrote: >>> In our previous episode, Marcos Douglas said: >>> >>>> I proposed this sintaxe: >&g

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
On Tue, Aug 21, 2012 at 3:08 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: > >> I proposed this sintaxe: >> uses my_long_unit_name as my; >> begin >> my.proc(); >> end > > This doesn't protect any better, since &g

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
pose my old code to the risk of new collisions. > > Even worse, as the language currently stands, it is possible to upgrade > a unit to a compatible version and get a different behaviour from my > program. Without a single warning from the compiler. Yes, Yes, even people saying otherw

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
On Tue, Aug 21, 2012 at 1:29 PM, Timothy Madden wrote: > On 08/21/2012 06:06 PM, Marcos Douglas wrote: >> On Mon, Aug 20, 2012 at 1:15 PM, Timothy Madden >> wrote: > [...] >>> Is there any form of proposal or some alternative to the USES clause, >>> that wil

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Marcos Douglas
as were proposed... but none was accepted or because no one will implement it. I proposed this sintaxe: uses my_long_unit_name as my; begin my.proc(); end Simple, clean and easy. But I do not know how implement this on the compiler. IMHO, without changing the language, only the compiler could

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-19 Thread Marcos Douglas
ng(utf-16) or whatever you want to call it]. Have sense. This is a good idea. > Anyway, just my 2¢ worth. no need for any reply. Now has 4¢. =) Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OAuthv1/Twitter library/application ready; was: EncodeURLElement, underscore and RFC3986?

2012-06-21 Thread Marcos Douglas
On Thu, Jun 21, 2012 at 11:14 AM, Graeme Geldenhuys wrote: > > > On Thursday, 21 June 2012, Marcos Douglas wrote: >> >> >> I can't clone the sources: >> $ git clone https://bitbucket.org/reiniero/fpctwit >> Cloning into fpctwit... >> fatal: ht

Re: [fpc-pascal] OAuthv1/Twitter library/application ready; was: EncodeURLElement, underscore and RFC3986?

2012-06-21 Thread Marcos Douglas
d.Readunknown > override in SourceForge with the same patch as attachment. > > Thanks, > Reinier Hi, First, good job. I can't clone the sources: $ git clone https://bitbucket.org/reiniero/fpctwit Cloning into fpctwit... fatal: https://bitbucket.org/reiniero/fpctwit/info/refs

Re: [fpc-pascal] Setting string to be UnicodeString by default

2012-05-15 Thread Marcos Douglas
imal, curious for me -- and I'm a Delphi programmer too. But if you (and everybody) do not think the same, ok let's forget my comment. ;-) Marcos Douglas PS: OBones, I saw your comments, thanks. ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Setting string to be UnicodeString by default

2012-05-15 Thread Marcos Douglas
l it stay? > > > It will stay afaik, although the effects may still change to better match > Delphi2009+ compatibility if required. I would like to understand why Delphi compatibility is so important to FPC and Lazarus. Marcos Douglas ___ fpc-pasc

Re: [fpc-pascal] TBufDataSet: ApplyUpdates

2012-05-03 Thread Marcos Douglas
On Thu, May 3, 2012 at 1:01 PM, Sven Barth wrote: > On 03.05.2012 15:40, Marcos Douglas wrote: >> >> On Thu, May 3, 2012 at 10:01 AM, LacaK  wrote: >>> >>> Marcos Douglas  wrote / napísal(a): >>> >>> On Thu, May 3, 2012 at 2:52 AM, LacaK  wrote:

Re: [fpc-pascal] TBufDataSet: ApplyUpdates

2012-05-03 Thread Marcos Douglas
On Thu, May 3, 2012 at 10:01 AM, LacaK wrote: > Marcos Douglas  wrote / napísal(a): > > On Thu, May 3, 2012 at 2:52 AM, LacaK wrote: > > > I saw the TBufDataSet.ApplyUpdates and it calls ApplyRecUpdate. > The ApplyRecUpdate just raises an exception... > > > > Ye

Re: [fpc-pascal] TBufDataSet: ApplyUpdates

2012-05-03 Thread Marcos Douglas
om.br/detail?id=897#1825 I don't have other SGBD now to test so, I would like to know if this is a problem in TMSSQLConnection or in ApplyUpdates? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TBufDataSet: ApplyUpdates

2012-05-02 Thread Marcos Douglas
Hi, I saw the TBufDataSet.ApplyUpdates and it calls ApplyRecUpdate. The ApplyRecUpdate just raises an exception... There is some implementation, in some place, to work with ApplyUpdates (like a Delphi's TClientDataSet)? Thanks Marcos Douglas __

[fpc-pascal] jsondataset: Memleak

2012-04-30 Thread Marcos Douglas
Please see: http://bugs.freepascal.org/view.php?id=21900 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-30 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 11:49 PM, waldo kitty wrote: > On 3/29/2012 21:26, Marcos Douglas wrote: >> >> Thanks for the test. >> We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). >> The env variable was added before I start the application, always. > >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-30 Thread Marcos Douglas
On Fri, Mar 30, 2012 at 5:43 AM, Bart wrote: > On 3/29/12, Marcos Douglas wrote: > >> The application is installed and the system variable is created. > > How exactly is this done? I'm not responsible for this part but I'm sure

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
n(GetEnvironmentVariable('TestVar')); > end. > - Thanks for the test. We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). The env variable was added before I start the application, always. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:45 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: >> >> On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd >> wrote: >>> >>> Marcos Douglas wrote: >>> >>>> I know that I have to define the environment v

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:32 AM, Sven Barth wrote: > Am 29.03.2012 13:29, schrieb Marcos Douglas: > >> On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth >>  wrote: >>> >>> Am 29.03.2012 13:06, schrieb Marcos Douglas: >>> >>>> The applica

<    1   2   3   4   5   6   7   8   >