passing arguments by reference

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Thu Jun 18 1998 - 11:13:04 MEST


Hi,

I have a method Print(const int& name) that waits a reference to a
variable. In a compiler, if I do f->Print(15), the compiler generates an
internal variable and everything seems OK.
In cint, if I do the same, I get a SEG fault. If I use a variable,
everything works as expected.

Is this call completely illegal in C++ ? If so, why does cint segfaults
instead of saying that I shouldn't do that ?

Cheers

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



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