[Development] Fornux C++ Superset
Phil Bouchard
philippeb8 at gmail.com
Wed Apr 25 14:20:39 CEST 2018
On 04/25/2018 08:17 AM, Eric Lemanisser wrote:
>
> Support for nested structures is easy to fix and will just take a
> day or
> two to do so. For example:
>
> struct A
> {
> struct B
> {
> };
> };
>
> Will be converted into the following so that I can have their
> specialization in a top-level namespace:
>
> struct A__B
> {
> };
>
> struct A
> {
> };
>
>
> This would break existing code, as name lookup from nested class should
> visit first enclosing class before visiting namespace. Also, the nested
> class must have access to all names (private, protected, etc) to which
> the enclosing class has access
> (http://en.cppreference.com/w/cpp/language/nested_types)
I forgot to mention that these rewritten structures are used to hold
meta-data only, used internally.
Regards,
-Phil
More information about the Development
mailing list