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 » How to declare a global var without id in *.upt?
Re: How to declare a global var without id in *.upt? [message #3126 is a reply to message #3125] Mon, 08 May 2006 07:32 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
fudadmin wrote on Sun, 07 May 2006 19:38


Can be a bug? Because it works like this:



Yes, sorry. <: is for expression, <:{ is for block of statements, that ';' makes it an expression.

Quote:


Edit:
But, in this case, if I assign a number or a string Esc outputs them. Maps and arrays are OK.


What is wrong then?

BTW, strings are arrays, there is no difference. Also, maps are structures,

a.b

is same as

a["b"]

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
Read Message
Read Message
Read Message
Previous Topic: Esc: how to convert from string to number (or integer)?
Next Topic: Esc: how to use recursion?
Goto Forum:
  


Current Time: Sat May 25 03:37:26 CEST 2024

Total time taken to generate the page: 0.01542 seconds