Re: [ROOT] A littel macro and a bug

From: Patois Yannick (patois@ganil.fr)
Date: Thu Aug 24 2000 - 19:11:49 MEST


On Thu, 24 Aug 2000, Fons Rademakers wrote:

> Hi Yannick, 
>    CINT seems to get confused by the fact that "p" has not been declared
> properly (while not complaining about it, which is a CINT extension).
> 
> Change:
>    p = new  TPad("a","b",.1,.1,.9,.9);
> to
>    TPad *p = new  TPad("a","b",.1,.1,.9,.9);
> 
> and the problem is solved.


Thanx a lot, the original problem was a little bit more complex, but the
solution was the same.

Is there a way to disable this 'extension' ? Unfortunately, it's not the
first time I lose too much time on this pecular behavior of CINT.

At least a warning could be issued... It seems that if the expression is
not very simple, the implicit declaration of variables is very likely to
prevent the macro to run (and the worse is that no clear message neither
line number is given...).

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET