hi Daniel, thanks for reminding me. So the patch for GOOPS is redundant. On Tue, Dec 27, 2011 at 3:17 PM, Daniel Hartwig <mand...@gmail.com> wrote:
> On 27 December 2011 14:24, Nala Ginrut <nalagin...@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? > > GOOPS has `class-of'[1] and `class-name': > > 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 >