Nim v2.0 Manual
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
Pragmas
来源 1
浏览
77
扫码
打印
2024-07-11 20:43:34
上一篇:
下一篇:
发布点评
Author
About this document
Overload resolution
Overloading based on ‘var T’
Lazy type resolution for untyped
Varargs matching
iterable
Overload disambiguation
Statements and expressions
Statement list expression
If statement
Case statement
When statement
When nimvm statement
Return statement
Yield statement
Block statement
Break statement
While statement
Continue statement
Discard statement
Assembler statement
Using statement
If expression
When expression
Case expression
Block expression
Table constructor
Type conversions
Type casts
The addr operator
Void context
The unsafeAddr operator
Var statement
Let statement
Special identifier _ (underscore)
Tuple unpacking
Const section
Static statement/expression
Procedures
Export marker
Type bound operators
Nonoverloadable builtins
Var parameters
Var return type
NRVO
Overloading of the subscript operator
Method call syntax
Properties
Command invocation syntax
Closures
Anonymous procedures
Do notation
Func
Routines
Methods
Iterators and the for statement
Implicit items/pairs invocations
First-class iterators
Converters
Type sections
Exception handling
Try statement
Try expression
Except clauses
Custom exceptions
Defer statement
Raise statement
Exception hierarchy
Imported exceptions
Effect system
Exception tracking
EffectsOf annotation
Tag tracking
Side effects
GC safety effect
Effects pragma
Definitions
Generics
Generic Procs
Is operator
Type classes
Implicit generics
Generic inference restrictions
Symbol lookup in generics
Mixin statement
Bind statement
Delegating bind statements
Templates
Typed vs untyped parameters
Passing a code block to a template
Varargs of untyped
Symbol binding in templates
Identifier construction
Lookup rules for template parameters
Hygiene in templates
Limitations of the method call syntax
Macros
Debug example
bindSym
Post-statement blocks
For loop macro
Case statement macros
Special Types
static[T]
typedesc[T]
typeof operator
Modules
Import statement
Include statement
Module names in imports
Collective imports from a directory
Pseudo import/include paths
From import statement
Export statement
Scope rules
Packages
Compiler Messages
Pragmas
deprecated pragma
fatal pragma
warning pragma
hint pragma
line pragma
linearScanEnd pragma
computedGoto pragma
immediate pragma
redefine pragma
compilation option pragmas
push and pop pragmas
compileTime pragma
register pragma
global pragma
Disabling certain messages
used pragma
experimental pragma
noreturn pragma
acyclic pragma
final pragma
shallow pragma
pure pragma
asmNoStackFrame pragma
error pragma
Implementation Specific Pragmas
Bitsize pragma
Link pragma
passc pragma
localPassC pragma
passl pragma
Emit pragma
ImportCpp pragma
ImportJs pragma
ImportObjC pragma
CodegenDecl pragma
cppNonPod pragma
size pragma
compile-time define pragmas
Align pragma
Noalias pragma
Volatile pragma
nodecl pragma
Header pragma
IncompleteStruct pragma
Compile pragma
User-defined pragmas
pragma pragma
Custom annotations
Macro pragmas
Foreign function interface
Importc pragma
Dynlib pragma for export
Exportc pragma
Extern pragma
Bycopy pragma
Byref pragma
Varargs pragma
Union pragma
Packed pragma
Dynlib pragma for import
Lexical Analysis
Encoding
Raw string literals
Generalized raw string literals
Character literals
Numeric literals
Operators
Unicode Operators
Other tokens
Indentation
Comments
Multiline comments
Identifiers & Keywords
Identifier equality
Keywords as identifiers
String literals
Triple quoted string literals
Threads
Guards and locks
Syntax
Associativity
Precedence
Dot-like operators
Grammar
Order of evaluation
Constants and Constant Expressions
Restrictions on Compile-Time Execution
Types
Ordinal types
Structured types
Array and sequence types
Open arrays
Varargs
Unchecked arrays
Tuples and object types
Object construction
Object variants
cast uncheckedAssign
Default values for object fields
Pre-defined integer types
Set type
Reference and pointer types
Nil
Mixing GC’ed memory with ptr
Procedural type
Distinct type
Auto type
Subrange types
Pre-defined floating-point types
Boolean type
Character type
Enumeration types
String type
cstring type
Type relations
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度