From: Marius Kjeldahl <marius.kjeldahl@gmail.com>
To: Per Bothner <per@bothner.com>
Cc: kawa@sourceware.org
Subject: Re: Questions regarding modules
Date: Tue, 04 Mar 2014 18:58:00 -0000 [thread overview]
Message-ID: <CAHdMyCJGg2F+zwdip93WH9DrUZK+qQpnx6XEvjWTgGMXqeMAiw@mail.gmail.com> (raw)
In-Reply-To: <53161FE6.3010708@bothner.com>
Possibly a delusion on my part, but I was under the assumption that a
module defined without any class declaration could be made, i.e.:
(module-name net.kjeldahl.mymod)
(define (hello)
"Hello")
which could then somehow be required and used in another module:
(require <net.kjeldahl.mymod>)
....
(net.kjeldahl.mymod:hello)
That assumption may be wrong on my part. But that begs my previous
question on what the module-name declaration does. My earlier testing
shows that it is not needed if I use define-class or similar...
Thanks,
Marius K.
On Tue, Mar 4, 2014 at 7:48 PM, Per Bothner <per@bothner.com> wrote:
> On 03/04/2014 10:18 AM, Marius Kjeldahl wrote:
>>
>> I know svn doesn't have push, which is why I quoted it. Consider it a
>> clue on what I'll be "pushing" for when/if I start comitting patches.
>> ;-)
>>
>> I got the r7841 update, but ufortunately I can still not get it
>> working (I've tried various combinations with the < > signs and
>> without, still no luck).
>
>
> Can you show me some simplified sample code? It would be easier for me
> to try it if you make it non-Android-specific. For example I experimented
> with:
>
> (module-name p.KawaActivity)
> (require <p.HelloKawa>)
> (define-simple-class KawaActivity ()
> ((onCreate) (HelloKawa:hello)))
>
> ....
>
> (module-name p.HelloKawa)
>
> (define-simple-class HelloKawa ()
> ((hello) allocation: 'static
> "Hello from HelloKawa!"))
> ;;(define (hello)
> ;; "Hello from Kawa!")
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
next prev parent reply other threads:[~2014-03-04 18:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-01 15:52 Marius Kjeldahl
2014-03-01 22:30 ` Marius Kjeldahl
2014-03-01 23:06 ` Per Bothner
2014-03-03 9:06 ` Per Bothner
2014-03-03 9:23 ` Marius Kjeldahl
2014-03-03 20:30 ` Per Bothner
2014-03-03 20:50 ` Marius Kjeldahl
2014-03-03 21:15 ` Per Bothner
[not found] ` <CAHdMyCKEqZXfpqTL-AX5q+XAQNq3cChoYFa0aDDVet+_PX_2og@mail.gmail.com>
2014-03-03 21:42 ` Fwd: " Marius Kjeldahl
2014-03-04 9:10 ` Per Bothner
2014-03-04 9:55 ` Marius Kjeldahl
2014-03-04 17:23 ` Per Bothner
2014-03-04 18:26 ` Marius Kjeldahl
2014-03-04 18:48 ` Per Bothner
2014-03-04 18:58 ` Marius Kjeldahl [this message]
2014-03-04 20:16 ` Per Bothner
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHdMyCJGg2F+zwdip93WH9DrUZK+qQpnx6XEvjWTgGMXqeMAiw@mail.gmail.com \
--to=marius.kjeldahl@gmail.com \
--cc=kawa@sourceware.org \
--cc=per@bothner.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).