user-documentation icon indicating copy to clipboard operation
user-documentation copied to clipboard

Clarify the relationship between this::X and self::X

Open Wilfred opened this issue 5 years ago • 0 comments

this::X is late-static-bound semantics for a const type in a class. Similar to static::some_value.

By contrast, self::X in a type and self::some_value are both resolved to the lexically bound class.

Wilfred avatar Jul 28 '20 00:07 Wilfred