Crystal Programming Language v1.18 Documentation
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

Types and methods

来源 Crystal 浏览 1 扫码 打印 2026-10-23 23:13:59
  • Types and methods
    • Types and methods

Types and methods

Types and methods

The next sections will assume you know what object oriented programming is, as well as the concepts of classes and methods.

上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • Index
  • Specification
    • About this guide
    • The Program
    • Comments
    • Documenting code
    • Literals
      • Nil
      • Bool
      • Integers
      • Floats
      • Char
      • String
      • Symbol
      • Array
      • Hash
      • Range
      • Regex
      • Tuple
      • NamedTuple
      • Proc
      • Command
    • Assignment
    • Local variables
    • Control expressions
      • Truthy and falsey values
      • if
        • As a suffix
        • As an expression
        • Ternary if
        • if var
        • if var.is_a?(…)
        • if var.responds_to?(…)
        • if var.nil?
        • if !
      • unless
      • case
      • select
      • while
        • break
        • next
      • until
      • &&
      • ||
    • Requiring files
    • Types and methods
      • Everything is an object
      • Classes and methods
        • new, initialize and allocate
        • Methods and instance variables
        • Type inference
        • Union types
        • Overloading
        • Default parameter values and named arguments
        • Splats and tuples
        • Type restrictions
        • Return types
        • Method arguments
        • Operators
        • Visibility
        • Inheritance
          • Virtual and abstract types
        • Class methods
        • Class variables
        • finalize
      • Modules
      • Generics
      • Structs
      • Constants
      • Enums
      • Blocks and Procs
        • Capturing blocks
        • Proc literal
        • Block forwarding
        • Closures
      • alias
    • Exception handling
    • Type grammar
    • Type reflection
      • is_a?
      • nil?
      • responds_to?
      • as
      • as?
      • typeof
    • Type autocasting
    • Macros
      • Macro methods
      • Hooks
      • Fresh variables
    • Annotations
      • Built-in annotations
    • Low-level primitives
      • pointerof
      • sizeof
      • instance_sizeof
      • alignof
      • instance_alignof
      • offsetof
      • Uninitialized variable declaration
      • asm
    • Compile-time flags
      • Cross-compilation
    • C bindings
      • lib
      • fun
        • out
        • to_unsafe
      • struct
      • union
      • enum
      • Variables
      • Constants
      • type
      • alias
      • Callbacks
    • Unsafe code
  • Guides
    • Performance
    • Concurrency
    • Testing
    • Writing Shards
      • Hosting on GitHub
      • Hosting on GitLab
    • Continuous Integration
      • GitHub Actions
      • CircleCI
    • Static Linking
    • Crystal for Rubyists
      • Metaprogramming Help
    • Database
      • Connection
      • Connection pool
      • Transactions
    • Coding style
    • Runtime Tracing
  • Tutorials
    • Getting started
      • An HTTP Server
      • A Command Line Application
    • Language introduction
      • Hello World
      • Variables
      • Math
      • Strings
      • Control Flow
      • Methods
  • Manuals
    • Using the Compiler
    • The Shards Command
    • Required libraries
    • Platform Support
    • Release Policy
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度