[lazarus] Extra (gdb) info for: Bug# 159

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 26 05:54:23 EST 2003


On Fri, 26 Dec 2003 11:19:07 +0100  Micha Nelissen <micha at neli.hopto.org>
wrote:

> Mattias Gaertner wrote:
> 
> > On Fri, 26 Dec 2003 19:34:52 +1000  prologic at shortcircuit.net.au (James
> > Mills) wrote:
> > 
> > 
> >>
> >>Here you go:
> > 
> > 
> > Thanks. Fixed.
> > 
> > I will soon change ColorRef to integer. The compiler does not warn about
> > these things, but inserts code to raise exceptions.
> 
> Doesn't warn too when you enable hints?

.. and no, it does not show, even with hints enabled. For example:

procedure A(c: cardinal);
begin
  writeln(c);
end;

procedure B(i: integer);
begin
  A(i); // no compiler hint/warning, but range check will bomb 
end;

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
  B(-3);
end;



Mattias






More information about the Lazarus mailing list