From: Kaushal Modi <kaushal.modi@gmail.com>
To: "Aurélien Aptel" <aurelien.aptel@gmail.com>,
"Philipp Stephani" <p.stephani2@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [modules] Possible return values of the env->type_of?
Date: Fri, 22 Jun 2018 13:52:44 -0400 [thread overview]
Message-ID: <CAFyQvY0oOruiY3ACNZ9F+BFR3jVR3VeNn7bW8_f0CyM29B_p2Q@mail.gmail.com> (raw)
In-Reply-To: <CA+5B0FMxurn6mXCTEe3MVSocyOQ+gGnH1ou+-YD_inSZSQH68w@mail.gmail.com>
Hello Aurélie,
On Fri, Jun 22, 2018 at 1:38 PM Aurélien Aptel <aurelien.aptel@gmail.com>
wrote:
>
> That's because lists are cons: (list 1 2 3) and (cons 1 (cons 2 (cons
> 3 nil))) eval to the same thing.
>
Yes. Thank you. I realized that after I looked at C-h f type-of:
> Return a symbol representing the type of OBJECT.
> The symbol returned names the object’s basic type;
So the "basic" is the key :)
> Perhaps you'll find Philip's doc useful:
> https://phst.github.io/emacs-modules#type_of
>
Yes! That's where I figured out the relationship between env->type_of and
type-of.
@Philipp Can that documentation be made part of the Emacs Manual? It's
really useful for folks like me who don't know C. In your doc, you say:
> Because the module API is a C API, you have to be familiar with C to
write Emacs modules.
But that doesn't seem to be the case for me :) Nim provides enough
abstraction to use this API and make the code readable just like Python.
This is what I am working on[1].
[1]:
https://github.com/kaushalmodi/nim-emacs-module/blob/test-whole-emacs-module/test/modtest.nim
--
Kaushal Modi
next prev parent reply other threads:[~2018-06-22 17:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 14:41 [modules] Possible return values of the env->type_of? Kaushal Modi
2018-06-22 17:10 ` Kaushal Modi
2018-06-22 17:38 ` Aurélien Aptel
2018-06-22 17:52 ` Kaushal Modi [this message]
2018-06-22 18:16 ` Eli Zaretskii
2018-12-25 16:13 ` Philipp Stephani
2018-06-22 20:58 ` Drew Adams
2018-06-22 18:10 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY0oOruiY3ACNZ9F+BFR3jVR3VeNn7bW8_f0CyM29B_p2Q@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=aurelien.aptel@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).