Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
> int x=10;
|
||||
Result: 10
|
||||
> x * 5;
|
||||
Result: 50
|
||||
> dump wrapper
|
||||
Last compiled wrapper:
|
||||
001: mapping(string:mixed) ___hilfe = ___Hilfe->variables;
|
||||
002: # 1
|
||||
003: mixed ___HilfeWrapper() { return (([mapping(string:int)](mixed)___hilfe)->x) * 5; ; }
|
||||
004:
|
||||
>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
string payload = "x * 5";
|
||||
|
||||
program demo = compile_string("string eval(mixed x){ " + payload + "; }");
|
||||
|
||||
demo()->eval(10);
|
||||
Result: 50
|
||||
demo()->eval(20);
|
||||
Result: 100
|
||||
Loading…
Add table
Add a link
Reference in a new issue