public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Help using Ranges
@ 2022-06-06 17:23 Zachary Kurmas
  2022-06-06 17:42 ` Per Bothner
  0 siblings, 1 reply; 4+ messages in thread
From: Zachary Kurmas @ 2022-06-06 17:23 UTC (permalink / raw)
  To: kawa


Can someone point me to a more complete example of how to use ranges?  When I try to run the example from the documentation


#|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])

I get the error shown below.  Am I missing an include or something?


/dev/stdin:1:22: warning - no declaration seen for :
/dev/stdin:1:22: unbound location: :
        at gnu.mapping.SharedLocation.get(SharedLocation.java:22)
        at gnu.mapping.DynamicLocation.get(DynamicLocation.java:28)
        at atInteractiveLevel$1.run(stdin:1)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:317)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:219)
        at kawa.Shell.run(Shell.java:291)
        at kawa.Shell.run(Shell.java:203)
        at kawa.Shell.run(Shell.java:184)
        at kawa.repl.main(repl.java:892)
#|kawa:2|#

Thanks,

Zack


--
Zachary Kurmas
Associate Professor of Computer Science
Grand Valley State University
http://www.cis.gvsu.edu/~kurmasz


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help using Ranges
  2022-06-06 17:23 Help using Ranges Zachary Kurmas
@ 2022-06-06 17:42 ` Per Bothner
  2022-06-06 17:54   ` Sudarshan S Chawathe
  2022-06-06 18:13   ` Zachary Kurmas
  0 siblings, 2 replies; 4+ messages in thread
From: Per Bothner @ 2022-06-06 17:42 UTC (permalink / raw)
  To: Zachary Kurmas, kawa

On 6/6/22 10:23, Zachary Kurmas via Kawa wrote:
> 
> Can someone point me to a more complete example of how to use ranges?  When I try to run the example from the documentation
> 
> 
> #|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
> 
> I get the error shown below.  Am I missing an include or something?
> 
> 
> /dev/stdin:1:22: warning - no declaration seen for :

Strange - works for me:

$ kawa --version --
Kawa 3.1.1 (git describe: 3.1.1-62-gebcfcca29-dirty)
Copyright (C) 2020 Per Bothner
#|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
BDF

Perhaps a very old (or otherwise-broken) version of Kawa?
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help using Ranges
  2022-06-06 17:42 ` Per Bothner
@ 2022-06-06 17:54   ` Sudarshan S Chawathe
  2022-06-06 18:13   ` Zachary Kurmas
  1 sibling, 0 replies; 4+ messages in thread
From: Sudarshan S Chawathe @ 2022-06-06 17:54 UTC (permalink / raw)
  To: Per Bothner; +Cc: Zachary Kurmas, kawa

Per Bothner <per@bothner.com> wrote:

> On 6/6/22 10:23, Zachary Kurmas via Kawa wrote:
> > Can someone point me to a more complete example of how to use
> > ranges?  When I try to run the example from the documentation
> > 
> > #|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
> > I get the error shown below.  Am I missing an include or something?
> > 
> > /dev/stdin:1:22: warning - no declaration seen for :
> 
> Strange - works for me:
> 
> $ kawa --version --
> Kawa 3.1.1 (git describe: 3.1.1-62-gebcfcca29-dirty)
> Copyright (C) 2020 Per Bothner
> #|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
> BDF
> 
> Perhaps a very old (or otherwise-broken) version of Kawa?

It works for me too (also using Kawa version 3.1.1).  However, I get an
error similar to the one in the original message if I start kawa with
the --r7rs option, so perhaps something like that is what's happening in
the earlier case.

Regards,

-chaw

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help using Ranges
  2022-06-06 17:42 ` Per Bothner
  2022-06-06 17:54   ` Sudarshan S Chawathe
@ 2022-06-06 18:13   ` Zachary Kurmas
  1 sibling, 0 replies; 4+ messages in thread
From: Zachary Kurmas @ 2022-06-06 18:13 UTC (permalink / raw)
  Cc: kawa


Per was right:  I had an old version.

I grabbed the latest .jar file from the FTP server (which is version 2.1) instead of getting the jar file from inside of kawa-3.1.1.zip.  (Doh!)

Thanks,

Zack


On Jun 6, 2022, at 1:42 PM, Per Bothner <per@bothner.com<mailto:per@bothner.com>> wrote:

On 6/6/22 10:23, Zachary Kurmas via Kawa wrote:
Can someone point me to a more complete example of how to use ranges?  When I try to run the example from the documentation
#|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
I get the error shown below.  Am I missing an include or something?
/dev/stdin:1:22: warning - no declaration seen for :

Strange - works for me:

$ kawa --version --
Kawa 3.1.1 (git describe: 3.1.1-62-gebcfcca29-dirty)
Copyright (C) 2020 Per Bothner
#|kawa:1|# ("ABCDEFG" [1 by: 2 <: 7])
BDF

Perhaps a very old (or otherwise-broken) version of Kawa?
--
--Per Bothner
per@bothner.com<mailto:per@bothner.com>   http://per.bothner.com/

--
Zachary Kurmas
Associate Professor of Computer Science
Grand Valley State University
http://www.cis.gvsu.edu/~kurmasz


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-06 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 17:23 Help using Ranges Zachary Kurmas
2022-06-06 17:42 ` Per Bothner
2022-06-06 17:54   ` Sudarshan S Chawathe
2022-06-06 18:13   ` Zachary Kurmas

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).