Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle conflicts of function name and argument name #80

Open
yutannihilation opened this issue Jan 27, 2024 · 0 comments
Open

Handle conflicts of function name and argument name #80

yutannihilation opened this issue Jan 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yutannihilation
Copy link
Owner

#[savvy]
pub fn args(args: ListSexp) -> savvy::Result<savvy::Sexp> {
  ...
}
SEXP args__impl(SEXP args) {
    SEXP res = args(args);
    return handle_result(res);
}
init.c: In function 'args__impl':
init.c:186:16: error: called object 'args' is not a function or function pointer
  186 |     SEXP res = args(args);
      |                ^~~~
init.c:185:22: note: declared here
  185 | SEXP args__impl(SEXP args) {
      |                 ~~~~~^~~~
make: *** [C:/PROGRA~1/R/R-devel/etc/x64/Makeconf:282: init.o] Error 1
ERROR: compilation failed for package 'savvyExamples'
@yutannihilation yutannihilation added the bug Something isn't working label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant