From 4192147809e6177837310110e9fc099fb85280dd Mon Sep 17 00:00:00 2001 From: James Clark Date: Sun, 20 Sep 2020 19:43:39 +0700 Subject: [PATCH] isolated method treats self like parameter Part of #145. --- lang/spec.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lang/spec.html b/lang/spec.html index a710bb01..0365640f 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -2039,14 +2039,20 @@
Methods
method-name := identifier

-The method-name of a method-decl must be distinct from -the method-name of every other method-decl in the +A method-decl describes a method of the object. The +method-name of a method-decl must be distinct from the +method-name of every other method-decl in the object-type-descriptor and from the field-name of every object-field-descriptor in the object-type-descriptor. Note that here is no method overloading. The method-name in a method-decl must not be init.

+

+The isolated-qual together with the function-signature +give the function type of the method. An isolated method has the same access to +the object on which the method is invoked that it has to parameters. +

remote-qual := remote