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

Home » Public Forums » archive » Re: gurus: example code as main level code ?
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: gurus: example code as main level code ? [message #32749 is a reply to message #32747] Mon, 04 November 2002 06:11 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
Reimar Bauer wrote:
> Dear Bob,
>
> I am wondering a bit what happens to the example if I do
>
> .compile range
> resolve_all
> save,file='range.sav',/routines,/compress
>
> It seems only the function is saved in the sav binary.
>
> First I was thinking this could be a problem for the routine
> itselfs, but it works fine. I can miss the example by runtime routines.
>
> Normally if we have more complicated routines you need more as one testcase.
> Or did you think about having a large main program which tells what it is
> testing and what the result should be and is. At the moment I am using the
> EXAMPLES: tag in the comments.
>
> By graphic routines this is nearly impossible. There is a saved image better
> for comparisons. For the plotenvironment I have already a large image /
> testcases which is very useful during beta tests.
>
> Your idea will make it very easy to check math functions and to show
> differences if the output is redirected to a file.
>
>
> regards
>
> Reimar

Very good point Reimar, I had not considered what would
happen in a sav file. I rarely use them, usually only for an
interim data storage solution in development.
Perhaps I will switch over to an /examples keyword.

I also include a /help keyword too, to remind the user (i.e. me)
what keywords are available and how to use the routine, but it
would probably be better to make a help file or some other real
documentation.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to get the position of mouse
Next Topic: Re: How to plot many lines simultaneously

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

Current Time: Fri Oct 10 13:43:26 PDT 2025

Total time taken to generate the page: 0.88546 seconds