----- Original Message -----
From: "Anthony Walter" <[email protected]>
To: <[email protected]>; "FPC-Pascal users discussions"
<[email protected]>
Sent: Wednesday, November 11, 2009 1:07 AM
Subject: Re: [fpc-pascal] Compiler Warning: Constructor should be public
Your argument is flawed. Visibility rules apply to identifiers, not
keywords.
Create // identifier
CreateFromLine // different identifier
No visibility is being changed by introducing a *new* identifier
raise EAssertError.Create(Msg); // still visible
raise EAssertError.CreateFromLine(Msg, FileName, LineNumber); // not
visible
<SNIP>
Hi Anthony,
Sorry, but you are incorrect; "Create" is a method, not an identifier,
and like all methods, it is affected by visibility rules (public, private,
protected).
cheers,
Paul
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal