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

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: Sat Sep 12 02:04:55 GMT+2 2026

Total time taken to generate the page: 0.00923 seconds