OxL Справочник OxL
РусскийEnglish

kw self

Зарезервированное слово

Список слов: §1.4

Синтаксис

ebnf
Primary     = Literal | Path | "it" | "self" | "(" Expr { "," Expr } ")" | ListLit | MapLit
            | StructLit | Lambda | Block | If | Match | For | While | Loop | Scope | Select | Query
            | "spawn" ( Postfix | Block ) | "await" Unary | "atomic" [ "(" Args ")" ] Block
            | "return" [ Expr ] | "fail" Expr | "yield" Expr | "respond" Expr | "break" [ Label ] [ Expr ]
            | "continue" [ Label ] | "emit" Path "(" Expr ")" | "unsafe" Block | "blocking" Block
            | "comptime" Block | "." Ident [ "(" [ Args ] ")" ] ;

Грамматика: Прил. A

Определяется в

Примеры

oxl
use std.time { Duration, now }
use std.http.{Client as Http}
use self.billing { charge }      // модуль своего пакета
use super.common { Money }       // родительский модуль
use auth.tokens { verify }       // зависимость из oxl.toml
use parsers { <|> }              // импорт оператора
use std.coll.*                   // все pub-имена (предупреждение в библиотеках)

— 2.2 Импорт

Связанные диагностики

impl-foreign-type, unknown-method, ambiguous-embed, missing-override, override-without-open, bad-import-root, glob-import, import-conflict, unresolved-import, unresolved-name, refinement-violated, fail-type, question-context, unhandled-error

См. также