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

Home » Public Forums » archive » Re: TeXtoIDL fix for IDL 5.3
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: TeXtoIDL fix for IDL 5.3 [message #18929 is a reply to message #18928] Fri, 18 February 2000 00:00 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Randall Smith <rsmith@kracko.harvard.edu> wrote in message
news:owemabj2db.fsf@kracko.harvard.edu...
>
>
>
> Anyway, it turns out that RSI, in a fit of what can only be described
> as morally degenerate programming, added a new function (strtok) to
> the language, although they _didn't_ see fit to document this (it's
> apparently part of the new string routines stregex, strjoin, strmatch,
> and strsplit that are in IDL 5.3).

It's even more irritatingly trivial than that. They added strtok, then
decided to call it strsplit, but instead of renaming it they wrote strsplit
as a wrapper. Strsplit's code, in its entirety, is:

function strsplit, string, pattern, _ref_extra=extra

if (n_params() eq 1) then return, strtok(string, _extra=extra) $
else return, strtok(string, pattern, _extra=extra)

end

I hope RSI doesn't sue me for violating copyright by reproducing this. Think
of the advantage their competitors could gain by perusing it!

P.S. No more frivolous posts for a week, I promise!

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Getting rid of loops
Next Topic: Re: high resolution coastlines

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

Current Time: Wed Dec 03 01:44:36 PST 2025

Total time taken to generate the page: 0.32453 seconds