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

Home » Public Forums » archive » Re: Problem with RESOLVE_ROUTINE
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: Problem with RESOLVE_ROUTINE [message #75330 is a reply to message #75317] Fri, 25 February 2011 07:08 Go to previous message
Jean[2] is currently offline  Jean[2]
Messages: 41
Registered: October 2010
Member
On Feb 24, 2:17 pm, fgg <fabioguimaraesgoncal...@gmail.com> wrote:
> Hi,
>
> I'd like to compile a function from within a procedure, and I'm using RESOLVE_ROUTINE for that:
>
> pro test_pro
>     resolve_routine, 'test_func', /is_function
>     print, test_func(2)
> end
>
> However, this doesn't seem to be working... if I (1) open the function file (see below), (2) change the return statement to x^3, (3) close it without compiling it, and (4) run the procedure above again, it will continue to print "4".
>
> function test_func, x
>     return, x^2
> end
>
> I have no problems if I enter ".COMPILE test_func" at the command line. Any ideas?
>
> Thank you

I faced this issue several times before I started to have the reflex
to always do a full reset before compiling
> .reset

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: License manager troubles
Next Topic: Re: scripted object graphics question

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

Current Time: Wed Oct 08 19:33:10 PDT 2025

Total time taken to generate the page: 0.00388 seconds