[fpc-devel] Building of FPC trunk broken on Darwin

2014-11-23 Thread Joao Morais
]: *** [compiler_cycle] Error 2 make: *** [build-stamp.i386-darwin] Error 2 = Using both 2.6.2 or 2.6.4 as the starting compiler. Rev 29084 is nice. Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-devel] Customize TRequest and TResponse

2012-05-16 Thread Joao Morais
On Fri, Mar 2, 2012 at 8:37 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 2 Mar 2012, Joao Morais wrote: Hello Michael, plans to implement the patch? Perhaps you prefer against trunk, including all webhandlers, registering a mantis, ... My apologies, I totally forgot about

Re: [fpc-devel] Customize TRequest and TResponse

2012-03-02 Thread Joao Morais
On Sun, Feb 5, 2012 at 17:41, Joao Morais jcmorai...@gmail.com wrote: On Sun, Feb 5, 2012 at 18:11, Michael Van Canneyt mich...@freepascal.org wrote: for instance in src/base/custfcgi.pp I would add    function CreateRequest: TFCGIRequest; virtual;    function CreateResponse(ARequest

[fpc-devel] Customize TRequest and TResponse

2012-02-05 Thread Joao Morais
to see in the fcl-web is described below. Is it possible to implement? Perhaps 2.6 branch? Joao Morais 1. New virtual methods used to create requests and responses: --- src/base/custweb.pp (revision 20261) +++ src/base/custweb.pp (workcopy) @@ -108,6 +108,8 @@ Procedure SetBaseURL(AModule

Re: [fpc-devel] circular uses clauses

2008-10-02 Thread Joao Morais
. ... and the interface section of an unit need to be parsed before used by another one? Regards, - Graeme - -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-09 Thread Joao Morais
Anton Kavalenka wrote: I only have a dream - controllable way of string assignment without any magic like implicit call of _LStrAddRefCnt Do you have a real-world sample of usage, ie, where or when the object pascal way is a problem? Joao Morais

Re: [fpc-devel] Re: Multi threading support

2008-07-31 Thread Joao Morais
. I'd say 'another use for refcounted interfaces'. Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] protected members access across classes in the same package, but what about inherited cross package

2008-07-20 Thread Joao Morais
in bar.pp Yes. Friend classes. - But what about inherited members? Should TSomething be able to access ThatValue? Yes, if the object pointer is declared as TThatFake or you cast the pointer to TThatFake. Otherwise no, only public members of TThat would be visible. Joao Morais

Re: [fpc-devel] C style operator doesn't work with properties in 2.3.1

2008-07-17 Thread Joao Morais
, the first and the second x are the same entity. I think what you need is a new feature. If the statement before the += token is a property, instead of a variable, the compiler converts it into one getter and one setter, and after that use them to perform the calculation. -- Joao Morais

Re: [fpc-devel] C style operator doesn't work with properties in 2.3.1

2008-07-16 Thread Joao Morais
sample. They don't deserve such comment. -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] StrToDateTime issue

2008-06-04 Thread Joao Morais
Joao Morais wrote: Michael Van Canneyt wrote: A patch is welcome. Here it is. This patch fixes a misbehaviour when space is left in front of the date or time, as well as call StrToTime if only a time is provided. Remember. Joao Morais Index: rtl/objpas/sysutils/dati.inc

[fpc-devel] StrToDateTime issue

2008-05-29 Thread Joao Morais
Hello, Performing some tests with date and time routines I discovered that StrToDateTime doesn't work if I only use time. This was designed that way or a patch is welcome? Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

Re: [fpc-devel] StrToDateTime issue

2008-05-29 Thread Joao Morais
Michael Van Canneyt wrote: On Thu, 29 May 2008, Joao Morais wrote: Hello, Performing some tests with date and time routines I discovered that StrToDateTime doesn't work if I only use time. This was designed that way or a patch is welcome? A patch is welcome. Here it is. This patch fixes

Re: [fpc-devel] Build FPC 2.3.1 from SVN sources

2008-01-17 Thread Joao Morais
) and get it from the compiler directory (the directory with ppc386.exe). You can also checkout http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32 -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-29 Thread Joao Morais
any help referencing these issues The help topics on interfaces and $Interfaces styles are very vague. Not vague, they was straight to the point imo. -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

Re: [fpc-devel] RTTI's GetPropValue returns corrupt Boolean value

2007-11-20 Thread Joao Morais
(AObject, PropName)); if lSearch = lbool then writeln('Comparison was a success'); end; Sounds familiar. Here I have: if UsePublishedGetter then Result := Boolean(GetOrdProp(Owner, Metadata.Name)) else Result := Value; -- Joao Morais

Re: [fpc-devel] How to force the child's constructor to call its parent constructor

2007-10-21 Thread Joao Morais
method; constructors will call it for sure. You can also override the AfterConstruction method. -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] property syntax extension

2007-10-18 Thread Joao Morais
introduced in D7) Yup. D7 introduced the Delphi Language and killed Object Pascal, perhaps because of the .net stuff. -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Unreachable code warnings

2007-10-14 Thread Joao Morais
Micha Nelissen wrote: Joao Morais wrote: The compiler warns that the result wasn't assigned, but that function's result simply cannot be reached. Why not make it a procedure ? Because it is an abstract method. -- Joao Morais ___ fpc-devel

Re: [fpc-devel] Unreachable code warnings

2007-10-14 Thread Joao Morais
Florian Klaempfl wrote: Joao Morais schrieb: The compiler warns that the result wasn't assigned, but that function's result simply cannot be reached. Fixed in trunk when compiled with -Oodfa which will be probably a default in 2.4.0. Thanks. Now a note: {$mode objfpc} var vobj: tclass

Re: [fpc-devel] Unreachable code warnings

2007-10-14 Thread Joao Morais
Joao Morais wrote: Remove the comment and the note is also removed. sed 's/^Remove.*//' -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] GetConnectionDef in the interface section

2007-07-16 Thread Joao Morais
Michael Van Canneyt wrote: On Sun, 15 Jul 2007, Joao Morais wrote: Hello, It's possible include the following declaration: function GetConnectionDef(ConnectorName: string): TConnectionDef; in the interface section of the sqldb unit and merge to 2.2? Moving it to interface

[fpc-devel] GetConnectionDef in the interface section

2007-07-15 Thread Joao Morais
Hello, It's possible include the following declaration: function GetConnectionDef(ConnectorName: string): TConnectionDef; in the interface section of the sqldb unit and merge to 2.2? Thanks. -- Joao Morais ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] FormatFloat bug

2007-05-29 Thread Joao Morais
correct. -- Joao Morais Here is the application output: --- $ ./project1 Time:00.001 N:7 E:0 F:1 I:0 TTestFormatFloat Time:00.001 N:7 E:0 F:1 I:0 00.000 Test1 00.000 Test2 00.000 Test3 00.000 Test4 Failed: Failed on 4 expected: $ 0.01

Re: [fpc-devel] Efficient way to inc loop over hexadecimal values

2006-11-22 Thread Joao Morais
to $D792 do YourValue := I * $1; Otherwise, if I didn't get what you mean, perhaps you can use some boolean arithmetic. -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] $Y raises internal error

2006-04-23 Thread Joao Morais
svn. HTH -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] FExpand function

2006-03-04 Thread Joao Morais
for I := 1 to Length (Pa) do if Pa [I] = '\' then Pa [I] := DirectorySeparator; end; Thanks, -- Joao Morais ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo