[fpc-devel] Bug in FPC and declaring distinct types

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Sep 18 16:13:00 CEST 2008


On Thu, Sep 18, 2008 at 3:55 PM, Florian Klaempfl
<florian at freepascal.org> wrote:
>
> Without any further code, the type 'asdf' is not defined, $H means only
> ansistring might be prefered.


So does that mean if you have {$H+} enabled, then in the example
below, the p1(ansistring) version will be called?


 procedure p1 (s : shortstring); overload;
 procedure p1 (s : ansistring); overload;
 procedure p1 (s : widestring); overload;

implementation

procedure main;
begin
  p1('xx');
end;



> I can't help you if you don't get what "= type ..." actually means :)

I'm trying too Florian.  And clearly my initial idea of this was wrong. :-(


Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list