- Perl 6 Deep Dive
- Andrew Shitov
- 125字
- 2021-07-03 00:05:49
Methods of the Int type
Data types in Perl 6 are represented by a number of built-in classes, which means that methods can be called on the objects of those classes. Object-oriented features of the language are described in Chapter 8, Object-Oriented Programming, but, for now, it is not possible to avoid some elements of it.
In this section, only the most interesting methods will be listed. The full list of possibilities can be obtained on the documentation page (https://docs.perl6.org/type/Int).
The most fundamental thing that is important now is that methods are called using the dot on either the value itself or on the variable containing the value of the corresponding type. You will see the way to call methods immediately in the next section.
推薦閱讀
- Java Web及其框架技術
- 實戰Java高并發程序設計(第3版)
- Spring Boot進階:原理、實戰與面試題分析
- ASP.NET Core 2 Fundamentals
- Visual Foxpro 9.0數據庫程序設計教程
- 輕松上手2D游戲開發:Unity入門
- Azure Serverless Computing Cookbook
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Struts 2.x權威指南
- Learning iOS Security
- Web Developer's Reference Guide
- Android應用開發實戰(第2版)
- Angular Design Patterns
- 高效使用Greenplum:入門、進階與數據中臺
- 前端架構設計