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 #3132 is a reply to message #3130] Mon, 08 May 2006 14:58 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Mon, 08 May 2006 12:46

fudadmin wrote on Mon, 08 May 2006 06:46

The problem is that if I assign to a global var a string or a number, their values are printed in the place of assignment. And that messes up *.h/*.cpp files...


Ah, of course, because if you do you <: :>, it is expression that gets evaluated and inserted. Use <:{ :global = ... ; }:> instead.

Mirek



Sad
No, in fact this doesn't work. Could you check if this works for you? For me it says "invalid expression"...
 
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: Mon Aug 25 13:54:36 CEST 2025

Total time taken to generate the page: 0.10546 seconds