Re: can TCL handle large string?



liudin wrote:
> I want to pass a string which length is large than 255 to a function.
> But it seems that tcl chop the string to the limit of 250.

Tcl does no such thing.

If you see a command that does that, blame the command, not Tcl.

> Is there any way
> in TCL to handle the large string?

Tcl will happily handle any string value up to 2147483647 bytes long.

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.



Relevant Pages

  • TIP #185: Null Handling
    ... nulls, and command modifications for manipulating them. ... Tcl deals with strings, the universal medium for representing data. ... is know and it is an empty string, but if a respondent forgets to give ...
    (comp.lang.tcl)
  • All commands are equal, but some are more equal than others.
    ... just finished implementing a HTTP webcrawler using the http package ... be able to scramble a string. ... Very surprised AH starts searching the Tcl wiki to find out what might ... % <command to add subcommands to namespace ensemble> string scramble ...
    (comp.lang.tcl)
  • Re: The "never use string commands with lists" mantra - Why?
    ... The reason is because Tcl isn't like other languages. ... The fundamental role of the tcl parser is to take a string (eg: ... Tcl has no idea what the command will do ... when lists truly were strings. ...
    (comp.lang.tcl)
  • Re: TIP #185: Null Handling
    ... reconstructed from its string representation. ... this is how Tcl works. ... Tcl database API ought to work. ... extension, it would be a good idea for the Core to provide ...
    (comp.lang.tcl)
  • Re: TCL source code
    ... learning Tcl, and I am not a professional programmer. ... Tcl is a command line interface. ... you, Tcl is passing the name which is a string, but this string, this ... A script is a sequence of commands Tcl execute them one after the other ...
    (comp.lang.tcl)