on´t see this
as complicated. Just get rid of it!
Léo Willian Kölln
On Tue, Apr 7, 2009 at 11:00 AM, "Vinzent Höfler"
wrote:
> On Mon, Apr 6, 2009 at 10:15 PM, Graeme Geldenhuys
> wrote:
>
>> And, i don't put an override to the constructor, so in my class the
>>
100%. Simply access the singleton via the gMySingleton
> method.
I liked it, but i cant use it, is too lazy and i'm a very very strict
old boring man! :P
Léo Willian Kölln
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
it always complain!
The problem in this case is not a break of contract (class interface),
in my opinion is a problem of compiler interpretation, it Always
require constructors to be Public, we just need read the warning
message again: "Warning: Constructor should be p
; override;
class function GetInstance: TLoggerGeral;
class procedure recebeMensagem(const mensagem: String; tipo:
ETipoMensagem = NORMAL);
end;
A normal singleton and it complain!
Léo Willian Kölln
On Mon, Apr 6, 2009 at 4:41 PM, Graeme Geldenhuys
wrote:
>> Simply questio
Simply question. Why?
In Delphi i don´t need this, and on ObjPascal i don´t see why this is
necessary...
This warning happens even when i use the Delphi compatibility mode!
Léo Willian Kölln
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
I´m Working on a project of a program that will run on Windows and
Linux. The binary to the windows will be compiled using Delphi, and
for Linux using FPC. (This is not the question)
All the strings on the code are Widestrings (yes!).
On Windows i have specific functions to call using Widestrings