![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Gene LeFave wrote:
> In my case I was parsing text from an http post and my code "assumed" that
> an &# was always followed by another character.
>
> Just seemed to me that /string ought not go negative.
I have definitely seen it used that way, to "back up" in a string.
Cheers,
Elizabeth
>
> On 15 Mar 2007 at 7:53, Leon Wagner wrote:
>
>> I can see how this would be confusing as "u2" is supposed to be an unsigned
>> integer.
>>
>>> -----Original Message-----
>>> From: sftalk-bounce_at_forth.com
>>> [mailto:sftalk-bounce_at_forth.com] On Behalf Of Rick VanNorman
>>> Sent: Thursday, March 15, 2007 7:50 AM
>>> To: sftalk_at_forth.com
>>> Subject: [sftalk] Re: /STRING
>>>
>>> The behavior is as defined by DPANS:
>>>
>>> Adjust the character string at c-addr1 by n characters. The resulting
>>> character string, specified by c-addr2 u2, begins at c-addr1 plus n
>>> characters and is u1 minus n characters long.
>>>
>>> I actually use it when parsing strings, using the /STRING function
>>> until it returns a negative value.
>>>
>>> rick
>>>
>>> On 3/15/07, Gene LeFave <gene_at_tekdata.com> wrote:
>>>> I just got stung by a bug caused by calling /STRING with a
>>> value greater
>>>> then the string length. Seems to me that /STRING ought to
>>> check for that
>>>> and not return a string length <0.
>>>>
>>>> On the other hand I can see how someone might expect that
>>> behavior and
>>>> use /STRING for something other then strings.
>>>>
>>>> Just wondering what other folks thought.
>>>>
>>>> Gene
>>>>
>>>>
>>> ----------------------------------------------------------------------
>>>> sftalk_at_forth.com The SwiftForth programming discussion
>>> email list
>>>> To unsubscribe, send subject "unsubscribe" to
>>> sftalk-request_at_forth.com
>>>> For list command help, send subject "help" to
>>> sftalk-request_at_forth.com
>>>> Message archives are located at http://www.forth.com/archive/sftalk
>>>>
>>> ----------------------------------------------------------------------
>>>> This list is a forum for SwiftForth users. For product support and
>>>> bug reports, please send email to support_at_forth.com
>>>>
>>> ----------------------------------------------------------------------
>>>>
>>> ----------------------------------------------------------------------
>>> sftalk_at_forth.com The SwiftForth programming discussion email list
>>> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
>>> For list command help, send subject "help" to sftalk-request_at_forth.com
>>> Message archives are located at http://www.forth.com/archive/sftalk
>>> ----------------------------------------------------------------------
>>> This list is a forum for SwiftForth users. For product support and
>>> bug reports, please send email to support_at_forth.com
>>> ----------------------------------------------------------------------
>>>
>>>
>> ----------------------------------------------------------------------
>> sftalk_at_forth.com The SwiftForth programming discussion email list
>> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
>> For list command help, send subject "help" to sftalk-request_at_forth.com
>> Message archives are located at http://www.forth.com/archive/sftalk
>> ----------------------------------------------------------------------
>> This list is a forum for SwiftForth users. For product support and
>> bug reports, please send email to support_at_forth.com
>> ----------------------------------------------------------------------
>>
>>
>>
>
>
>
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
> For list command help, send subject "help" to sftalk-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/sftalk
> ----------------------------------------------------------------------
> This list is a forum for SwiftForth users. For product support and
> bug reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
-- ================================================== Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310-491-3356 5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454 Hawthorne, CA 90250 http://www.forth.com "Forth-based products and Services for real-time applications since 1973." ================================================== ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Thu Mar 15 2007 - 12:27:11 PDT
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:42 PST