Re: [tcljava-dev] SubstCmd
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2007-06-07 02:40:10
|
Justin Ryan wrote: > I'm having a problem with the subst command, in which the java version > differs from the c version. In the C Tcl: > > % set str "Hello\rWorld\r" > World > % puts [string length $str] > 12 > % puts [string length [subst $str] ] > 12 > > You can see that the \r stays in the string. While in Jacl: > > % set str "Hello\rWorld\r" > World > % puts [string length $str] > 12 > % puts [string length [subst $str] ] > 10 > Justin, thanks for reporting this bug. It has now been fixed in the CVS. > Is there a reason that so many of the jacl/tcljava classes don't > define themselves as public classes? If a specific class shouldn't be > extended then it could be defined as final. > The Jacl implementation assumes that end users are not going to be extending classes inside the tcl.lang package. cheers Mo DeJong |