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

Automatic string to byte ptr generation #655

Open
GWRon opened this issue Mar 31, 2024 · 0 comments
Open

Automatic string to byte ptr generation #655

GWRon opened this issue Mar 31, 2024 · 0 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Mar 31, 2024

Heya,

While Mark (blitz-research / Speedy Snail) brought up the topic of passing strings to C not requiring "ToCString()" I scanned the git history of bcc to check when this automatic behaviour was added.

Seems in 2014 ...
ce46857

Now the questions are:
Why was this done?
Wouldn't one expect to pass the "object pointer" instead of some "magic auto generation"?
(What about the people who want to pass the string object / pointer instead of the string content?)

@HurryStarfish suggested (without much tinker-time - so just a "simple thought") to have something explicitely introduced, like the reverse of $z or $w.

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

1 participant