Re: (char*) paremeter to CINT macro

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri May 29 1998 - 08:22:35 MEST


Alexander Zvyagin wrote:
> 
>                                            IHEP, Protvino, Russia, 28-MAY-1998
> 
>     Dear friends!
> 
> I have macro  v.C
> v(char *s)
> {
>   printf("=> %s\n",s);
> }
> 
> I type in root prompt:
> root [4] .x v.C("aa")
> => aa
> (int)6
> root [5] .x v.C("aa :(")
> Error in <TRint::ProcessFile>: macro v.C("aa : not found in path .:
> /usr/local/root/macros
> 
> So I can not transfer string with symbol '(' to my macro.
> 
> Is it CINT bug or feature?
> 

This is a special case for the interface between Root and CINT.
Will be fixed. Meanwhile you can do instead:
 .L v.C
  v("aa:(")

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET