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

Home » Public Forums » archive » IsA questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IsA questions [message #90551] Mon, 09 March 2015 17:03 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Why are an invalid objects and pointers not scalars?

IDL> print, size(1)
0 2 1
IDL> print, size(ptr_new())
0 10 1
IDL> print, size(obj_new())
0 11 1
IDL> print, isa(1, /SCALAR)
1
IDL> print, isa(ptr_new(), /SCALAR)
0
IDL> print, isa(obj_new(), /SCALAR)
0


How is the /STRING keyword different from setting Typename to "String"?

IsA('theString', 'String')
IsA('theString', /STRING)


Finally, is this confusing to anyone else? Why not a /DECIMAL keyword instead?

a = 1.0d
PRINT, ISA(a, /FLOAT) ; 1
PRINT, ISA(a, 'Float') ; 0
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idlneturl, ftpcommand method not working
Next Topic: Masking the image

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

Current Time: Wed Oct 08 11:42:13 PDT 2025

Total time taken to generate the page: 0.00413 seconds