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

Home » Public Forums » archive » Re: declare variables
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: declare variables [message #45941 is a reply to message #45940] Tue, 18 October 2005 13:35 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Tue, 18 Oct 2005, qian wrote:
> is it possible I can re-inforce the array to be certain type (or
> let the variables to be certain type throughtout the whole
> program)? So even if I type d=1, it is still a real number?

No. IDL is a very loosly typed language. You can do:

x = 3.14159
x = "sort of pi"

And there exist no mechanism to produce an error, warning, message,
or anything that the variable has changed types.

-k.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Silent errors in run-time
Next Topic: lighting /ALIASed models

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

Current Time: Sun Oct 12 22:18:46 PDT 2025

Total time taken to generate the page: 1.03993 seconds