From: Damien Mattei <damien.mattei@gmail.com>
To: Per Bothner <per@bothner.com>, Jamison Hope <jhope@alum.mit.edu>
Cc: kawa@sourceware.org
Subject: Re: simple main example hello world
Date: Sat, 30 Sep 2023 20:21:47 +0200 [thread overview]
Message-ID: <CADEOaddsvhZNE-XSmHWsqFnmj_=sL_U3jhDq0WSW5=pKSAx-_Q@mail.gmail.com> (raw)
In-Reply-To: <e1f94e9d-2075-7d51-1317-1c34faf461d0@bothner.com>
thank you
the simplest example works:
(display "hello") (newline)
(format #t "The command-line was:~{ ~w~}~%" (command-line))
kawa test.scm
i see kawa use some syntax extension such as []:
'((main args::String[])::void allocation: 'static (display "hello"))
that expands in curly-infix reader as:
'((main args::String ()) ::void allocation: 'static (display "hello"))
is there a way to replace String[] in kawa by something that does not use [] ?
On Sat, Sep 30, 2023 at 6:03 PM Per Bothner <per@bothner.com> wrote:
>
> As Jamison wrote - this can be the entirety of your test.scm:
>
> (display "hello") (newline)
>
> More information and suggestions here:
> https://www.gnu.org/software/kawa/Scripts.html
>
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
next prev parent reply other threads:[~2023-09-30 18:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-30 13:25 Damien Mattei
2023-09-30 14:06 ` Damien Mattei
2023-09-30 15:09 ` Jamison Hope
2023-09-30 16:02 ` Per Bothner
2023-09-30 18:21 ` Damien Mattei [this message]
2023-09-30 18:35 ` Panicz Maciej Godek
2023-09-30 20:11 ` Damien Mattei
2023-09-30 23:28 ` Per Bothner
2023-10-01 8:30 ` Damien Mattei
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='CADEOaddsvhZNE-XSmHWsqFnmj_=sL_U3jhDq0WSW5=pKSAx-_Q@mail.gmail.com' \
--to=damien.mattei@gmail.com \
--cc=jhope@alum.mit.edu \
--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).