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

Home » Public Forums » archive » IDL8.4 hard crash
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: IDL8.4 hard crash [message #90313 is a reply to message #90312] Thu, 19 February 2015 06:40 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, February 19, 2015 at 1:23:01 AM UTC-7, Fabien wrote:
> On 18.02.2015 23:18, Chris Torrence wrote:
>> Okay, I like that. I was able to hack it in with 3 lines of code.
>>
>> IDL> a = hash()
>> IDL> a['a1','b1','c1','d1','e1','f1','g1','h1'] = 5
>> IDL> a
>> {
>> "a1": {
>> "b1": {
>> "c1": {
>> "d1": {
>> "e1": {
>> "f1": {
>> "g1": {
>> "h1": 5
>> }
>> }
>> }
>> }
>> }
>> }
>> }
>> }
>
> That's cool! But it doesn't have to be a hash() as default. You could
> also need something like:
>
> a = hash(DEFAULT=list())
> a['key']->add, 1
>
> Fabien

But I think in this case, since we're indexing using strings, then we know that we want a hash for the sub-container. I'd hate to complicate it further with a keyword that I have to document.
-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: raw contents of data memory
Next Topic: Ring in function graphics

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

Current Time: Wed Oct 08 14:21:27 PDT 2025

Total time taken to generate the page: 0.00189 seconds