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

Home » Public Forums » archive » Re: pointer question
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: pointer question [message #24315 is a reply to message #24314] Thu, 22 March 2001 08:24 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Mark Hadfield wrote:

> pro test, a
>
> ; Do something with a
>
> if not arg_present(a) then if ptr_valid(a) then ptr_free, a
>
> end

I am sorry, I have not had my first cup of coffe yet. How is that
supposed to work? If there is *no* argument present, *then* try to check
if the missing argument is a pointer? What am I missing? Should it be

if arg_present(a) then if ptr_valid(a) then ptr_free, a ;?

Also, in the example provided by Ted, the parameter is not going to be
recognized by Arg_present, because it is not passed by reference since
it is an expression.
But I think Paul answered already how to do this sort of thing properly.

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget fonts
Next Topic: *.cdf files

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

Current Time: Sat Oct 11 07:09:57 PDT 2025

Total time taken to generate the page: 1.15425 seconds