- 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.
推薦閱讀
- Flask Web全棧開發實戰
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- Java Web基礎與實例教程(第2版·微課版)
- 程序員修煉之道:通向務實的最高境界(第2版)
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Learning DHTMLX Suite UI
- 軟件供應鏈安全:源代碼缺陷實例剖析
- Internet of Things with ESP8266
- Access 2010中文版項目教程
- Test-Driven JavaScript Development
- 時空數據建模及其應用
- OpenStack Networking Essentials
- Spring Boot從入門到實戰
- HTML5+CSS3+jQuery Mobile+Bootstrap開發APP從入門到精通(視頻教學版)
- Microsoft Windows Identity Foundation Cookbook