Skip to content
Snippets Groups Projects
Commit 062e84bf authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Language: Improve backward compat for inherit specifiers.

Inherit specifiers are now only looked up in indirect
inherits when not found as any direct inherit:

  The priority order is as follows:

  1: Direct inherits in the current class.

  2: The name of the current class.

  3: 1 & 2 recursively for surrounding parent classes.

  4: Indirect inherits in the current class.

  5: 4 recursively for surrounding parent classes.

  6: this_program.

Note that a deep inherit in the current class trumphs
a not so deep inherit in a parent class (but not a
direct inherit in a parent class). To select the deep
inherit in the parent class in this case, prefix it
with the name of the parent class.

This should be fully backward compatible except for the case
where there's a deep inherit with the name "this_program".
parent 61ee9b25
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment