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 #3133 is a reply to message #3132] Mon, 08 May 2006 15:07 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
fudadmin wrote on Mon, 08 May 2006 08:58

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"...


Maybe it will require .... return ""; } :>.

If it does, Expand needs fixing.

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: Mon Aug 25 11:12:30 CEST 2025

Total time taken to generate the page: 0.07229 seconds