![]() |
![]() |
klem4 |
![]()
Сообщение
#1
|
![]() Perl. Just code it! ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модераторы Сообщений: 4 100 Пол: Мужской Реальное имя: Андрей Репутация: ![]() ![]() ![]() |
Почему я не могу напрямую вызвать метод класса ? ClassName.MethodName ? Просто интересно.
{$N+} uses Crt, Polinom; -------------------- perl -e 'print for (map{chr(hex)}("4861707079204E6577205965617221"=~/(.{2})/g)), "\n";'
|
![]() ![]() |
volvo |
![]()
Сообщение
#2
|
Гость ![]() |
Цитата(ref.pdf) Inside a class method, the self identifier points to the VMT table of the class. No fields, properties or regular methods are available inside a class method. Accessing a regular property or method will result in a compiler error. The reverse is possible: a class method can be called from a regular method. Именно поэтому приходится работать не с полями класса, а с внешней (по отношению к классу) переменной...... Class methods cannot be used as read or write specifiers for a property. |
![]() ![]() |
![]() |
Текстовая версия | 29.07.2025 6:03 |