diff options
-rw-r--r-- | NEWS | 15 | ||||
-rw-r--r-- | doc/ChangeLog | 2 |
2 files changed, 16 insertions, 1 deletions
@@ -411,6 +411,21 @@ There is no such concept as a weak binding any more. ** Removed constants: bignum-radix, scm-line-incrementors +** define-method: New syntax mandatory. + +The new method syntax is now mandatory: + +(define-method (NAME ARG-SPEC ...) BODY ...) +(define-method (NAME ARG-SPEC ... . REST-ARG) BODY ...) + + ARG-SPEC ::= ARG-NAME | (ARG-NAME TYPE) + REST-ARG ::= ARG-NAME + +If you have old code using the old syntax, import +(oop goops old-define-method) before (oop goops) as in: + + (use-modules (oop goops old-define-method) (oop goops)) + * Changes to the gh_ interface * Changes to the scm_ interface diff --git a/doc/ChangeLog b/doc/ChangeLog index 324a86d6c..d638bfc2a 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -2,7 +2,7 @@ * goops.texi (VERSION): Bumped to version 0.3. - * goops-tutorial.texi, goops.texi: Updated to reflext new + * goops-tutorial.texi, goops.texi: Updated to reflect new define-method syntax. 2001-03-09 Neil Jerram <neil@ossau.uklinux.net> |