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

implementation is not gcsafe #16

Open
mildred opened this issue Apr 12, 2023 · 1 comment
Open

implementation is not gcsafe #16

mildred opened this issue Apr 12, 2023 · 1 comment

Comments

@mildred
Copy link

mildred commented Apr 12, 2023

Implementation uses a global variable which is not gcsafe, which can be problematic when we want the assets from a gcsafe context (HTTP server callback for example).

Is it safe to use a {.cast(gcsafe)/}: block? The global variable is kind of read-only and permanent to the lifetime of the application. If so, can the generated code provide a gcsafe getAsset?

@xmonader
Copy link
Owner

Hi @mildred

I'm not familiar with the {.cast...} pragma , but please if you can help with a contribution i'd be more than willing to get it merged

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