guile-user
[Top][All Lists]
Advanced

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

Standard way of getting a record's class?


From: Vítor De Araújo
Subject: Standard way of getting a record's class?
Date: Sun, 18 Jun 2017 22:34:42 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0

Hello,

In Guile 2.0, when you defined a record type foo, and you had (oop
goops) loaded, a class <foo> was automatically created. That doesn't
seem to be the case anymore in Guile 2.2.

Is there a standard way in Guile to get a record type's associated
class? So far the solution I found is to construct an instance of the
record and call 'class-of' on it, but I wonder if there is a cleaner way
to do it.

Thanks!

-- 
Vítor De Araújo
https://elmord.org/



reply via email to

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