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

Nested inlines support? #99

Open
davesmith00000 opened this issue Oct 22, 2023 · 0 comments
Open

Nested inlines support? #99

davesmith00000 opened this issue Oct 22, 2023 · 0 comments

Comments

@davesmith00000
Copy link
Member

davesmith00000 commented Oct 22, 2023

If you nest inlines, you get this error:

Implementation restriction: nested inline methods are not supported

Which I suspect is Ultraviolet, not Scala.

The use case for allowing this is that you can only declare array lengths with literals, but it would be nice to be able to declare the length in one place.

inline def count = 5
val islands: array[count, vec3] = ... // doesn't work
...
while i < count do
  ...
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