-
Notifications
You must be signed in to change notification settings - Fork 48
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
More advanced string creation functions #21
Comments
Hi, Currently string support is problematic. Most embedded targets lacks |
The simple Imagine there's a It's completely possible I've missed the Ferret way to do this. But if not, the runtime generation of Ferret strings could be provided without changing how Ferret strings are represented. Right? __ |
I've modified
you can write
This also fixes the issue of once you use a |
Thanks! I didn’t get a chance to look at the code or try it today, but sounds like it’ll work. |
I have a sort of odd use case for ferret where I'm using it to interop with some C++ code in order to generate FFI bindings. A part of this requires generating source code in a different language and having the ability to apply templates would be helpful. Having
format
or evenstr
would be useful for this case.I went ahead and hacked up a replacement for
str
that relies on thestd::string
class, but would be nice to havestr
andformat
in core. Happy to send a PR with mystr
, though not sure it handles all cases and, as I said, it requiresstd::string
.Thanks for ferret, it's kind of weird but I like it as a hacky way to get at C++. :)
The text was updated successfully, but these errors were encountered: