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

The prototype for printw is wrong #19

Open
jmichel7 opened this issue Nov 21, 2024 · 3 comments
Open

The prototype for printw is wrong #19

jmichel7 opened this issue Nov 21, 2024 · 3 comments

Comments

@jmichel7
Copy link
Contributor

The declaration for printw is

printw(str::T)

This is completely wrong. printw is like the C function printf so the first argument is the format string and it takes a bunch of other arguments, the objects to be formatted. The prototype should be something like

printw(str::T,objs::Any...)

but I have no idea if this fits with the C declaration...

@ronisbr
Copy link
Owner

ronisbr commented Nov 26, 2024

Thanks for the report! I will check how it can be fixed.

@ronisbr
Copy link
Owner

ronisbr commented Nov 27, 2024

I think the Julia interface with C does not allow for this case :(

https://discourse.julialang.org/t/passing-a-list-of-arguments-to-a-varargs-c-function/5271

@jmichel7
Copy link
Contributor Author

This looks like a question to ask on discourse or as a Julia issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants