bug#26026: Defining a method named zero? breaks primitive zero?

2017-03-08 Thread Alejandro Sanchez
If I define a ‘zero?’ predicate method for a custom class the primitive ‘zero?’ is lost. Here is a simple vector module: ;;; File vector2.scm (define-module (vector2) #:use-module (oop goops) #:export ( get-x get-y zero?)) (define-class ()

bug#26106: Defining a method named '-' with one parameter

2017-03-15 Thread Alejandro Sanchez
If I define a method named ‘-‘ which only takes in one parameter, the expression ‘(- v)’ gets rewritten to ‘(- 0 v)’. Here is a minimal example: (use-modules (oop goops)) (define-class () (x #:init-value 0 #:getter get-x #:init-keyword #:x) (y #:init-

bug#26026: closed (Re: bug#26026: Defining a method named zero? breaks primitive zero?)

2017-04-22 Thread Alejandro Sanchez
@debbugs.gnu.org. > > -- > 26026: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26026 > GNU Bug Tracking System > Contact help-debb...@gnu.org with problems > > From: Andy Wingo > Subject: Re: bug#26026: Defining a method named zero? breaks primitive zero? > Date: 19 A