官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 福泉市| 建阳市| 紫阳县| 中西区| 衡山县| 武平县| 教育| 宁陵县| 祁连县| 莒南县| 沽源县| 天津市| 上犹县| 施甸县| 翁牛特旗| 若尔盖县| 津南区| 报价| 桂东县| 山丹县| 阿拉尔市| 昌图县| 江西省| 江山市| 永泰县| 万载县| 荥经县| 天柱县| 汕头市| 隆安县| 潮安县| 永安市| 贡山| 伊通| 惠东县| 法库县| 平谷区| 尼木县| 丹江口市| 浦江县| 大竹县|