书栈网 · BookStack 本次搜索耗时 0.016 秒,为您找到 650 个相关结果.
  • String type

    137 2024-07-11 《Nim v2.0 Manual》
    String type String type All string literals are of the type string. A string in Nim is very similar to a sequence of characters. However, strings in Nim are both zero-terminate...
  • String type

    460 2020-10-18 《Nim v1.4 Manual》
    String type String type All string literals are of the type string. A string in Nim is very similar to a sequence of characters. However, strings in Nim are both zero-terminat...
  • 重载过程

    重载过程 重载过程 Nim提供类似C++的过程重载能力: proc toString ( x : int ): string = ... proc toString ( x : bool ): string = if x : result = "true" else : result = ...
  • Header pragma

    106 2024-07-11 《Nim v2.0 Manual》
    Header pragma Header pragma The header pragma is very similar to the nodecl pragma: It can be applied to almost any symbol and specifies that it should not be declared and inst...
  • Modules

    642 2020-10-18 《Nim v1.4 Manual》
    Modules Import statement Include statement Module names in imports Collective imports from a directory Pseudo import/include paths From import statement Export statement ...
  • 过程类型

    过程类型 过程类型 过程类型是指向过程的内部指针。过程类型变量允许赋值 nil 。 示例: proc printItem ( x : int ) = ... proc forEach ( c : proc ( x : int ) {. cdecl .}) = ... forEach ( pri...
  • 编译期定义的编译指示

    编译期定义的编译指示 编译期定义的编译指示 此处列出的编译指示可用于在编译时选择接受-d /—define选项中的值。 该实现目前提供以下可能的选项(稍后可以添加各种其他选项)。 pragma description intdefine 读取构建时定义为整数 strdefine 读取构建时定义为字符串 booldefine 读取构建时定义为boo...
  • used pragma

    100 2024-07-11 《Nim v2.0 Manual》
    used pragma used pragma Nim produces a warning for symbols that are not exported and not used either. The used pragma can be attached to a symbol to suppress this warning. This...
  • htmlgen

    MathML Examples Imports Consts Procs Macros Source Edit Do yourself a favor and import the module as from htmlgen import nil and then fully qualify the macros. Note:...
  • Header编译指示

    Header编译指示 Header编译指示 header 编译指示与 noDecl 编译指示非常相似:它几乎可以应用于任何符号并指定不应该声明它,而生成的代码应该包含一个 #include : type PFile {. importc : "FILE*" , header : "<stdio.h>" .} = d...