RE:ROOT 2.22.10: Five buglet reports

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Mon Aug 16 1999 - 14:24:04 MEST


Dear Matthew

Thank you for the input.

>5) Static data members aren't initialized by the interpreter, even
>   though the initialization is explicit in the implementation
>   (e.g. .cxx) file.

This feature has to work. Will you send me an example that it does not
work?

As far as I tried, following works.

------------------------------
class A {
  int a;
 public:
  A(int in) : a(in) { }
};

class B {
 public:
  static int x;
  static A y;
};

int B::x = 1234;  // work fine
A B::y = A(5678); // work fine
// A B::y(9012); // sorry this one does not work


Thank you 
Masaharu Goto



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