emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51383: closed (noobie way of incorrectly using (guix records) )


From: GNU bug Tracking System
Subject: bug#51383: closed (noobie way of incorrectly using (guix records) )
Date: Wed, 27 Oct 2021 18:01:02 +0000

Your message dated Wed, 27 Oct 2021 14:00:42 -0400
with message-id <87tuh2gxf9.fsf@dismail.de>
and subject line 
has caused the debbugs.gnu.org bug report #51383,
regarding noobie way of incorrectly using (guix records) 
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51383: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51383
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: noobie way of incorrectly using (guix records) Date: Mon, 25 Oct 2021 02:15:54 -0400
So I made a pretty noobie-like mistake a few minutes ago.  When one
tries to make a (record-configuration), he invariably create an
infinite number of records.  The guile compiler eventually runs out
of memory and stops compiling.

(use-modules (guix records))

(define-record-type* <record-configuration>
  record-configuration make-record-configuration
  record-configuration?
  (command record-configuration-command
           ;; the error is here is on the next line
           (default (record-configuration))))  

(record-configuration)


This is not possible with (srfi sfri-9)


(use-modules (srfi srfi-9))

(define-record-type <employee>
  (make-employee name age (make-employeee 5 5 5))
  employee?
  (name    employee-name)
  (age     employee-age    set-employee-age!)
  (salary  employee-salary set-employee-salary!))

(make-employee)


The above results in a syntax error.


Is this a "feature" and not a bug?  I feel like this is a trivial bug,
and I am certain that other bugs are of greater importance.

Thanks,

Joshua



--- End Message ---
--- Begin Message --- Date: Wed, 27 Oct 2021 14:00:42 -0400
Bug will not be fixed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]