Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ Esc Interpreter, Esc Macros and templates » Esc: maps nested in arrays and vice versa - underdevelopment or a bug?
Re: Esc: maps nested in arrays and vice versa - underdevelopment or a bug? [message #3200 is a reply to message #3198] Fri, 12 May 2006 08:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
fudadmin wrote on Thu, 11 May 2006 23:55

fudadmin wrote on Fri, 12 May 2006 00:57

Esc: maps nested in arrays and vice versa - underdevelopment or a bug?


In fact, I should have named this topic: "Don't mess your your maps with unquoted keys!" Laughing
When porting one of my Dialect programs I encountered an unexpected behaviour with lot of "void"'s in my complex arrays-maps structure. Afterwards I realized that Esc requires map keys to be all quoted in such complex array cases. But in Ultimate's++ home page manual:

{ "alfa":10, "beta":20, 20:"40" }


20 is unquoted. When is the creation of new voids expected?




Hm, strange. I guess it should work (it did...). Are you awere that above can be written as

{ [ 'a', 'l', 'f', 'a' ] : 10, ['b', 'e', 't', 'a'] : 20,
20 : ['4', '0'] }

?

In other words, first two keys are arrays, last key is single number.

Could not that be the source of trouble?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Esc: how to use recursion?
Next Topic: What would be needed for Esc "read_file" or "include" or "import" or..
Goto Forum:
  


Current Time: Sat Jul 05 20:10:22 CEST 2025

Total time taken to generate the page: 0.03181 seconds