Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does xpidl support string constants?

constants String support xpidl
0
10 Posted

Does xpidl support string constants?

0

String consts are not supported – they are a pain to do safely in C++ without generating C++ implementation files, and would force linkage across modules (or duplication of strings). Any interface that wants the effect of string consts can declare string attributes and have some implementation of the interface return the strings. Yes, this does not declare the values in the interface declaration, but I argue that this is good enough.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.