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

Home » Public Forums » archive » Still missing features in IDL 8
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: Still missing features in IDL 8 [message #73381 is a reply to message #72898] Thu, 04 November 2010 16:40 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 4, 9:29 pm, JD Smith <jdtsmith.nos...@yahoo.com> wrote:
> Lists and hashes, while very welcome (!), are somewhat cumbersome to
> use with out some syntactic sugar along the lines of what has been
> discussed.  In addition to:
>
>  list[1,2,3]
>
> for a list/array containing another list/array, containing another
> list/array, we need, e.g.:
>
>  list[3,'foo',2:5]
>
> for a list containing a hash or structure, containing an array or
> list.

That is just what I was doing.

>   Currently you must use
>
>  (list[3])['foo']
>
> A better syntax, if it could be arranged, would be:
>
>  list[1][2]
>
> or
>
>  list[3]['foo']
>
> Even better if these could function correctly on the LHS of an
> assignment.

I agree that way would be better, not just because it would not mess
with the 8D limits. But that would require changes to the language,
for the new syntax, and a very different way for the overloadbrackets
method to work.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: modify the attribute value within a tag container
Next Topic: Re: how to calculate latitude and longitude from range and direction(azimuth and elevation)

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

Current Time: Thu Oct 09 15:20:30 PDT 2025

Total time taken to generate the page: 1.20123 seconds