Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.aliasthis
Compiler implementation of the
D programming language.
Authors:
License:
Source aliasthis.d
Documentation https://dlang.org/phobos/dmd_aliasthis.html
- class
AliasThis
: dmd.dsymbol.Dsymbol; - alias ident this;
- Dsymbol
sym
; - The symbol this alias this resolves to
- bool
isDeprecated_
; - Whether this alias this is deprecated or not
- bool
checkDeprecatedAliasThis
(AliasThisat
, ref const Locloc
, Scope*sc
); - Check if an alias this is deprecatedUsually one would use expression.checkDeprecated(scope, aliasthis) to check if expression uses a deprecated aliasthis, but this calls toPrettyChars which lead to the following message: "Deprecation: alias this fullyqualified.aggregate.__anonymous is deprecated"Parameters:
AliasThis at
The AliasThis object to check Loc loc
Loc of the expression triggering the access to at
Scope* sc
Scope of the expression (deprecations do not trigger in deprecated scopes) Returns:Whether the alias this was reported as deprecated.
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)