We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is useful for e.g.
pub fn ArrayList(comptime T: type) -> type { return struct { ... }; }
because now the type name created by ArrayList(u8) is ArrayList(u8).
ArrayList(u8)
however it becomes more problematic in this case:
export fn entry() { const Foo = struct { x: i32 }; @compileLog(@typeName(Foo)); }
This prints entry() as the name of the Foo type, which is incorrect.
entry()
Foo
I think inside a function, if you assign an anonymous struct to a variable, we can use the variable name as the type name.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is useful for e.g.
because now the type name created by
ArrayList(u8)
isArrayList(u8)
.however it becomes more problematic in this case:
This prints
entry()
as the name of theFoo
type, which is incorrect.I think inside a function, if you assign an anonymous struct to a variable, we can use the variable name as the type name.
The text was updated successfully, but these errors were encountered: