U++ framework
Do not panic. Ask here before giving up.

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: 1324
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate 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: 14291
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: Sun Jul 05 20:04:56 GMT+2 2026

Total time taken to generate the page: 0.00613 seconds