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

Home » Public Forums » archive » Re: A bug in Mac OS version?
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: A bug in Mac OS version? [message #13860 is a reply to message #13858] Tue, 15 December 1998 00:00 Go to previous messageGo to previous message
hellman is currently offline  hellman
Messages: 4
Registered: September 1998
Junior Member
In article <MPG.10e0810a9c715cf9896ad@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Saeid Zoonematkermani (Saeid.Zoonematkermani@sunysb.edu) writes:
>
>> IDL> print, !version
>> { PowerMac MacOS MacOS 5.2 Oct 30 1998}
>> IDL> print, '0000FF'x
>> 255
>> IDL> print, '00FF00'x
>> -256
>> IDL> print, 'FF0000'x
>> 16711680
>
> In fact, this value you are trying to create here is really
> a LONG integer. You, of course, are creating it as a SHORT
> integer. Now, I'll give you that IDL didn't used to behave
> so boarishly, but what it is doing (i.e. wrapping), IMHO,
> is entirely within its rights.

I would agree with you that

IDL> print, '00FF00'x
-256

might be reasonable, but then I'd expect

IDL> print, 'FF0000'x
0

If the behaviour shown above isn't wrong, then IDL is a very perverse language.

- Olof
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL with multiple processors
Next Topic: A bug in Mac OS version?

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

Current Time: Wed Oct 15 16:32:31 PDT 2025

Total time taken to generate the page: 2.07903 seconds