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

String Literals for format strings in the Print statement #36

Open
gilbo opened this issue Mar 24, 2015 · 0 comments
Open

String Literals for format strings in the Print statement #36

gilbo opened this issue Mar 24, 2015 · 0 comments

Comments

@gilbo
Copy link
Owner

gilbo commented Mar 24, 2015

See the other issue on Field Polymorphism #34 . This issue depends on it.

Once support for string literals is added we'd like to support some of printf string formatting in Liszt.

Maybe introduce novel syntax (e.g. %v, %m ? are those conflicted?) for printing out vector or matrix values? (Don't get caught up on this though)

gilbo added a commit that referenced this issue Jul 12, 2015
The design mostly conforms to the proposal.  No assignment of string
literals is allowed.  Special holes were provided for with Macros and
User functions (still always inlined) so that string literal arguments
can be propagated through.  String arguments must be untyped.
I also added the ability to write inline string values in Liszt code,
or inline by capturing a Lua upvalue, but did not add support for
format strings in print statements so #36 is still unresolved.

Finally, there is a new test for this functionality.
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