This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

eval-ing records



It's been called to my attention that I did not post an example of
what I meant by attempts to eval a record segfaulting. I meant it
literally:


guile> (define rtype (make-record-type 'test '()))
guile> (define rec ((record-constructor rtype)))
guile> rec
#<test>
guile> (eval rec)
ERROR: In expression #<test>:
ERROR: Bad memory access (Segmentation violation)
ABORT: (signal)


You may think this will never happen but consider macros that
accidentally insert a record into source expressions they generate.

 - Maciej Stachowiak