ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-dev
tcljava-dev
Re: [tcljava-dev] SubstCmd
by Mo DeJong other posts by this author
Jun 6 2007 7:40PM messages near this date
[tcljava-dev] SubstCmd | [tcljava-dev] Please help in loading a class...
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


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tcljava-dev mailing list
tcljava-dev@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
Thread:
Justin Ryan
Mo DeJong

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved