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 » Is it possible to use Esc language in *.upt templates?
Is it possible to use Esc language in *.upt templates? [message #3036] Thu, 04 May 2006 17:27 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1298
Registered: November 2005
Location: London, UK
Senior Contributor
Administrator
Is it possible to use Esc language in *.upt templates? And if 'yes', how? e.g for(int i=0;i<10;i++) cycle or similar?
Re: Is it possible to use Esc language in *.upt templates? [message #3037 is a reply to message #3036] Thu, 04 May 2006 18:21 Go to previous message
mirek is currently offline  mirek
Messages: 13663
Registered: November 2005
Ultimate Member
template "Console application (no U++)" main;

@@<:PACKAGE:>.cpp
#include "stdio.h"

<:{ x = ""; for(i = 0; i < 10; i++) x << to_string(i) << " "; return x; }:>

void main(int argc, const char *argv[])
{
}

@@<:PACKAGE:>.upp
file
	<:PACKAGE:>.cpp;


Mirek
Previous Topic: possible to update widgets via Esc dinamically and remotely?
Next Topic: Esc: how to convert from string to number (or integer)?
Goto Forum:
  


Current Time: Tue Aug 09 16:12:58 CEST 2022

Total time taken to generate the page: 0.01243 seconds