Documentation: [concat] works at string level, not list !!!
Closed / Fixed218779ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:15
OriginalBugID: 2102 Bug
Version: 8.1
SubmitDate: '1999-05-19'
LastModified: '1999-12-16'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-12-16'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'
Name: Alexandre Ferrieux
ObservedBehavior:
Documentation error for [concat]. When using [concat] with list
arguments whose internal list repr has already been computed, it uses
only their string representations (just like "$x $y" would...), so the
resulting list is created as a dumb string, whose list repr will be
recomputed from scratch as soon as needed. This is not what one would
think reading the manpage:
This command treats each argument as a list and concatenates
them into a single list.
DesiredBehavior:
A correct documentation:
The commands [concat $x $y] works roughly as "$x $y": it concatenates
its string arguments with an intervening space, and also normalizes
their internal separating spaces. Hence, if the arguments are also
proper lists, the result will also be a proper list, but computed only
at string level. For better performance, look at the -not yet
implemented nor documented- [lconcat] procedure.
Patch:
Stick the text above in lieu of the current stupid concat manpage.
Ha ! I've filled the 'patch' box. Hence I get a priority boost, right ?
PatchFiles:
concat.n
Comments:
Look for nearby request for [lconcat] !
The idea is that users should understand 'list' to be a
parseable, correct format list value, not necessarily a list
object. In any case, 8.3b1 will return a list when all
input items are pure lists.
-- 12/16/1999 hobbs
welch Closed ticket [218779ffff].
[History diff]2000-10-26 08:29:14
dgp Ticket [218779ffff]: 3 changes
[History diff]2001-04-04 13:35:49
Log in (anonymous is fine) to add a comment.