The with() statement

Slightly embarrassing that I never noticed that there was further semantic handling concerning those statements needed regarding completion and symbol resolution:
with(X) {
bar();
}

equals
X.bar();
But yay, now there’s completion available when using this:
All members of X will be shown additionally in the completion list now.

Further info: http://dlang.org/statement.html#WithStatement

Leave a Reply

Your email address will not be published. Required fields are marked *


eight + = 16

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>