RE:Re: Minor evaluation issue

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Oct 09 1999 - 12:53:14 MEST


Dear Victor,

Thank you for your comment.

'int i=1999' is a declaration. It does not have value to return.
On the other hand 'i=1999' is an expression which has value. To make
things clear, consider following expressions.

   int x, j;
   x = (int i=1999);   // syntax error
   x = (j = 1999);     // fine

In this sense, cint's behavior is consistent with C++ language.

I think keeping current implementation is a better solution. If
we force an output for 'int i=1999' it may create inconsistency
regarding C++ language processing.

Thank you
Masaharu Goto


>Dear Masaharu,
>as I understand George meant the following:
>
>root.exe [0] int i = 1999     // no print here
>root.exe [1] i = 1999         // but we have here
>(int)1999
>
>Of course it is not very important. If to fix it needs less 10 minutes,
>it would be good to do, if more no problem to leave it as it is.
>
>Victor



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