clang
clang copied to clipboard
Allow variables and functions to have dependent idexpr names.
For example:
$class foo {
int idexpr($foo.name() "_bar") = 0;
}
This is currently rejected because variables must have identifiers as names.
This raises an interesting question... how do we resolve references to these things? This is not an identifier, normal lookup mechanisms won't quite work. Leave them unresolved?
This hasn't been an issue because we've only been using idexpr
within metaprograms. Those are not dependent when instantiated -- or at least they haven't been yet.