Re: cint & dereferencing

Matthew D. Langston (langston@SLAC.stanford.edu)
Tue, 08 Jun 1999 16:05:12 +0000


Hi Masaharu,

Masaharu Goto wrote:
>
> 1) CINT extension,
>
> Many of CINT users previously used Fortran or BASIC in scientific
> computation. Cint extends some capability, such as '**' power
> operator, for convenience. This creates conflict to string C++
> definition.

Is there a mechanism to turn off the cint extensions (such as the '**'
operator)? Or, alternatively, is there perhaps some mechanism to turn
on warnings whenever one uses a non-ANSI C/C++ language construct?

Please don't misunderstand me - the cint extensions are very useful, and
we all appreciate them. I understand that if a root/cint user wants
100% pure C/C++, then that user should be using a native compiler.

However, a mechanism to turn off the cint extensions (or alternatively,
to enable warnings when they are used) would help tremendously in cases
like Joerg's, where he expected '**' to give him C/C++ semantics and not
Fortran 77 semantics.

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU