search for: gensym

Displaying 4 results from an estimated 4 matches for "gensym".

2004 Apr 19
3
New unique name
In some languages there is a function gensym() which returns a new unique name (in the current environment). This is quite helpful when one has to do temporary assignments. I could not find such a function in R. Is there one? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phon...
2015 Nov 04
2
[PATCH] tests/c-api: cache available features
...; 0; + f->read = true; + } + + return f->available; + } + + return false; +} + "; (* Generate a list of commands which are not tested anywhere. *) @@ -140,12 +211,10 @@ static int * support is available in the daemon. *) let group_test group = - let sym = gensym "features" in - pr " const char *%s[] = { \"%s\", NULL };\n" sym group; - pr " if (!guestfs_feature_available (g, (char **) %s)) {\n" sym; + pr " if (!is_feature_available (g, \"%s\")) {\n" group; pr " skipped (\&q...
2016 Jan 27
2
[PATCH 1/2] generator: add TestRunOrUnsupported test type
...n error then you should * set expect_error:true. *) -and generate_test_command_call ?(expect_error = false) ?test ?ret test_name cmd= +and generate_test_command_call ?(expect_error = false) ?(do_return = true) ?test ?ret test_name cmd= let ret = match ret with Some ret -> ret | None -> gensym "ret" in let name, args = @@ -561,7 +579,11 @@ and generate_test_command_call ?(expect_error = false) ?test ?ret test_name cmd= if expect_error then pr " guestfs_pop_error_handler (g);\n"; - (match errcode_of_ret style_ret, expect_error with + let ret_errcode =...
2005 Oct 03
2
access to R parse tree for Lisp-style macros?
R folks, I'm curious about possible support for Lisp-style macros in R. I'm aware of the "defmacro" support for S-Plus and R discussed here: http://www.biostat.wustl.edu/archives/html/s-news/2002-10/msg00064.html but that's really just a syntactic short-cut to the run-time use of substitute() and eval(), which you could manually put into a function yourself if you cared