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

Home » Public Forums » archive » Principle of Least Surprise
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Principle of Least Surprise [message #52093] Tue, 09 January 2007 14:34
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
Violated again. Consider:

IDL> a=replicate(1b,10)
IDL> a[3]=bindgen(3)
IDL> print,a
1 1 1 0 1 2 1 1 1 1

but now:

IDL> a=replicate({x:1b},10)
IDL> a[3].x=bindgen(3)
% Expression must be a scalar in this context: <BYTE Array[3]>.
% Execution halted at: $MAIN$

This ought to work.

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Writing on an image
Next Topic: Re: Principle of Least Surprise

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

Current Time: Fri Oct 10 04:17:30 PDT 2025

Total time taken to generate the page: 0.64315 seconds