Reorg some of the bootstrapping that was occuring in wesley

This commit is contained in:
Jason Turner
2009-06-10 23:39:34 +00:00
parent da60cad358
commit 8cfd40671b
3 changed files with 10 additions and 33 deletions

View File

@@ -30,11 +30,6 @@ struct Test
};
//A function that prints any string passed to it
void print(const std::string &s)
{
std::cout << "Printed: " << s << std::endl;
}
Boxed_Value named_func_call(BoxedCPP_System &ss,
const std::string &nametocall, const std::vector<Boxed_Value> &params)
@@ -108,7 +103,6 @@ int main()
//Register a new function, this one with typing for us, so we don't have to ubox anything
//right here
register_function(ss, &print, "print");
//Now we have a print method, let's try to print out the earlier example:
//so, we dispatch the to_string and pass its result as a param to "print"