RE: [ROOT] TString -> Option_t

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon May 12 2003 - 21:35:17 MEST


Hi Chris,

This problem is now fixed in the ROOT cvs repository.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Philippe Canal
Sent: Friday, April 18, 2003 2:53 PM
To: Chris Crawford; roottalk@pcroot.cern.ch
Subject: RE: [ROOT] TString -> Option_t


Hi Chris,

Actually there is already a type conversion from TString to Option_t* (which
is 'const char*').  However there is a deficiency (we are working on it) in
CINT which correctly detect the method to call but forgets to call the
convertion operator first.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Chris Crawford
Sent: Thursday, April 10, 2003 12:57 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] TString -> Option_t


hi,
  i would like to suggest adding a  TString->Option_t type conversion.
 that way, for example it would be easier to use strings in Draw()
expressions.  (without ->Data() all over)

example:
  TString exp("x:y");
  tree->Draw(exp);  //doesn't work
  tree->Draw(exp,""); //different function, does work
--chris


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET