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

Compile-time embed command for embedding files as strings #11

Closed
velipso opened this issue Dec 20, 2016 · 3 comments
Closed

Compile-time embed command for embedding files as strings #11

velipso opened this issue Dec 20, 2016 · 3 comments

Comments

@velipso
Copy link
Owner

velipso commented Dec 20, 2016

Create a new compile-time command (like pick), called embed, that embeds the contents of a file as a string.

var foo = embed "somefile.png"
@velipso
Copy link
Owner Author

velipso commented Jan 4, 2017

Rejecting this idea.

How often would it actually be used? Can't a programmer also solve this problem via a bin2sink script that converts binary data to a quoted string, that can then be included?

It's a nice idea, but not necessary.

@velipso velipso closed this as completed Jan 4, 2017
@velipso velipso added the wontfix label Jan 5, 2017
@velipso
Copy link
Owner Author

velipso commented Jun 11, 2017

Reopening...

Possibly needed in order to wire embed through the compile-time file system, with an end goal of being able to specify an entire game's behavior with a single compiled sink script.

@velipso
Copy link
Owner Author

velipso commented Jul 29, 2017

done

@velipso velipso closed this as completed Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant