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

Home » Public Forums » archive » precedence question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
precedence question [message #43003] Mon, 14 March 2005 10:35 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi guys,

I am a little bit lost in operator precedence. I think that . and [] has
the same precedence, and associate from left to right. So I expect the
following three expressions to be equivalent:

a=replicate({l:lindgen(2,3)}, 4,5)

help, a[3:6] .l [*,0:1] ; a
help, (a[3:6]).l [*,0:1] ; b
help, ((a[3:6]).l)[*,0:1] ; c

a is the same as b, but c differs. Where am I wrong?

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Forcing READ_ASCII output to be a set of strings...
Next Topic: HIST_ND() used for resampling point data onto grid

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

Current Time: Thu Oct 09 20:35:20 PDT 2025

Total time taken to generate the page: 1.11993 seconds