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 #3090 is a reply to message #3088] Sat, 06 May 2006 14:49 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
fudadmin wrote on Sat, 06 May 2006 11:37

luzr wrote on Sat, 06 May 2006 06:10



Still not sure about that global var (but global vars really just :id).

Mirek


I'm not against id's! Smile But I don't want a field displayed for each of them. Is there a possibility without changing Template.cpp?


I think, I've tricked Esc and *.upt! Cool

<:!testf(){ return "testreturn"; }:> //declare a global function

<:testf():>   //this outputs "testreturn"

<:{ :testf=10; return;}:>  //make a global var from a function!!!

<:testf:>  //this outputs 10!!!


What can you say?
 
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: Tue Jun 18 19:55:07 CEST 2024

Total time taken to generate the page: 0.02020 seconds