comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: str_sep bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: str_sep bug [message #7513 is a reply to message #7501] Tue, 26 November 1996 00:00 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Phil Williams <williams@irc.chmcc.org> writes:

> Sorry to answer my own question. BUT, after posting I searched the
> str_sep routine and think I located the bug. It's at line 122 of
> str_sep.pro. The line reads:

> else arr(i) = strmid(s, spos < strlen(spos) - 1, strlen(s))

> but should read:

> else arr(i) = strmid(s, spos-strlen(sep), strlen(s))

> I still think that there is a "bug." Although some would call it a
> feature? It's that the last element in the seperated list still has the
> seperator attached.

(rest deleted)

What version of str_sep.pro are you using? I cannot replicate your problem
with either the version (1.1) which comes with IDL 3.6 or the version (1.3)
which comes with IDL 4.0.1. My suspicion is that you're using some
non-standard version of str_sep.pro. I would certainly consider the behavior
you describe as a serious bug.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Inters. of two planes: routine wanted
Next Topic: Re: Make money!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 12:26:02 PST 2025

Total time taken to generate the page: 1.44132 seconds