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 » Creating classes for Esc and using in Esc.
Re: Creating classes for Esc and using in Esc. [message #27853 is a reply to message #27850] Fri, 06 August 2010 20:06 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Never mind, I figured it out. I can only use Evaluate to eval the first statement it seems?

Scan(global, 
  "main() {\n"
  "  p = Person();\n"
  "  p.SetName(\"John\");\n"
  "  Exclamation(p.GetName());\n"
  "}");
Upp::Execute(global, "main");


caused my "Person" example to work.

Jeremy
 
Read Message
Read Message
Previous Topic: How to add global var to Esc from cpp-files?
Next Topic: SIC_ vs ESC_ prefixes?
Goto Forum:
  


Current Time: Thu May 09 07:04:04 CEST 2024

Total time taken to generate the page: 0.02011 seconds