The OpenD Programming Language

Element.requireSelector

ditto but with selectors instead of ids

class Element
final
SomeElementType
requireSelector
(
SomeElementType = Element
)
(
string selector
,
string file = __FILE__
,
size_t line = __LINE__
)
if (
is(SomeElementType : Element)
)
out (ret) { assert (ret !is null); }

Meta