public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Damien Mattei <damien.mattei@gmail.com>,
	kawa mailing list <kawa@sourceware.org>
Subject: Re: meaning of | in scheme
Date: Tue, 7 Nov 2023 07:24:38 -0800	[thread overview]
Message-ID: <0ac48fb9-1055-4339-b22c-fb3f8fdbc003@bothner.com> (raw)
In-Reply-To: <CADEOadfKxEWFAjipd-GHf0__gJm0auPKHgeMaEA_OyDRO8PZfQ@mail.gmail.com>



On 11/7/23 02:43, Damien Mattei via Kawa wrote:
> #|kawa:4|# |java.lang.Math:random|
> /dev/tty:4:1: warning - no declaration seen for java.lang.Math:random
> #|kawa:5|# java.lang.Math:random
> Type double java.lang.Math.random()

Characters between || are read as "non-special" symbol-constituents.
So |java.lang.Math:random| is the same as java.lang.Math|:|random
which is the same as java.lang.Math\:random. All disable the
special handling of colon.

This behavior matches Common Lisp (and probably some other Schemes).

> why it does not offend scheme procedure? (and why is it a problem with
> java imported methods)

I have no idea what you're asking here.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

  parent reply	other threads:[~2023-11-07 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 10:43 Damien Mattei
2023-11-07 10:51 ` Damien Mattei
2023-11-07 15:24 ` Per Bothner [this message]
2023-11-07 16:00   ` 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=0ac48fb9-1055-4339-b22c-fb3f8fdbc003@bothner.com \
    --to=per@bothner.com \
    --cc=damien.mattei@gmail.com \
    --cc=kawa@sourceware.org \
    /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).