Re: Why Doesn't Substing Work

Subject: Re: Why Doesn't Substing Work
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Thu, 2 Apr 1998 11:45:58 -0500 (EST)
At 1 Apr 1998 15:58 -0600, W. Eliot Kimber wrote:
 > I just realized that the second argument is not a length but the character
 > that is the last character of the substring. Too many years of Rexx and
 > Perl programming.

Something's wrong somewhere.  Section 8.5.9.7 of the DSSSL standard
says:

   (substring string start end)

   Returns a string formed from the characters of "string" beginning
   with index "start" (inclusive) and ending with index "end"
   (exclusive).

The arguments to substring should be a string, a number, and a number.

Regards,


Tony Graham
=======================================================================
Tony Graham
Mulberry Technologies, Inc.                         Phone: 301-315-9632
17 West Jefferson Street, Suite 207                 Fax:   301-315-8285
Rockville, MD USA 20850                 email: tgraham@xxxxxxxxxxxxxxxx
=======================================================================


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Why Doesn't Substing Work
    • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA09336Wed, 1 Apr 1998 16:57:40 -0500 (EST)
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA09606Wed, 1 Apr 1998 17:05:07 -0500 (EST)
        • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA27361Thu, 2 Apr 1998 11:52:03 -0500 (EST) <=
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA28574Thu, 2 Apr 1998 12:25:19 -0500 (EST)
        • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA28882Thu, 2 Apr 1998 12:39:48 -0500 (EST)
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA29335Thu, 2 Apr 1998 12:50:30 -0500 (EST)