hi Daniel, thanks for reminding me.
GOOPS has `class-of'[1] and `class-name':On 27 December 2011 14:24, Nala Ginrut <nalaginrut@gmail.com> wrote:
> A newbie Guiler asked me if there's something like "typeof" as "type" in
> Python or "typeof" in JS.
> I can't remember there's such a thing. But I think it'll provide
> some convenient for a newbie to learn Guile.
> Here's my patch.
> What you guys think?
scheme@(guile-user)> (use-modules (oop goops))
scheme@(guile-user)> (class-of 12)
$1 = #<<class> <integer> 99bef78>
scheme@(guile-user)> (class-name $1)
$2 = <integer>
[1] http://www.gnu.org/software/guile/manual/html_node/Instances.html