You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
I'd prefer to have a dict instead (e.g. protocols_code.get(name) would return the file for the generated code for instance).
That's actually a pretty good idea. Unfortunately meson (0.52.1) can't use a non string literal for a dictionary key:
protocol_code= {}
foreachproto, path : protocols# ...protocol_code+= { proto: code } # This is invalidendforeach
And due to the way dictionaries work (i.e. they're pure) and some dictionary-of-dictionaries type stuff, I can't really think of a way to work around this (e.g. putting it in the protocols dictionary).
But this will be fixed in 0.53.0: https://mesonbuild.com/Syntax.html#dictionaries
It has been left as set_variable/get_variable currently, but changed to use an array of protocol strings in the wayland backend.
I think this should be revisited when the next meson version is out and we eventually target it for whatever reason.
That's actually a pretty good idea. Unfortunately meson (0.52.1) can't use a non string literal for a dictionary key:
And due to the way dictionaries work (i.e. they're pure) and some dictionary-of-dictionaries type stuff, I can't really think of a way to work around this (e.g. putting it in the protocols dictionary).
But this will be fixed in 0.53.0: https://mesonbuild.com/Syntax.html#dictionaries
It has been left as set_variable/get_variable currently, but changed to use an array of protocol strings in the wayland backend.
I think this should be revisited when the next meson version is out and we eventually target it for whatever reason.
Originally posted by @ascent12 in #1931
The text was updated successfully, but these errors were encountered: