Arc Forumnew | comments | leaders | submitlogin
Problem with assignment
5 points by jsgrahamus 26 days ago | 8 comments
Following along with tutorial with arc3.1:

  arc> (= s "foo")
  "foo"

  arc> s
  "foo"

  arc> (= (s 0) #\m)
  Error: "string-set!: contract violation\n   expected: (and/c string? (not/c immutable?))\n   given: \"foo\"\n  argument position: 1st\n  other arguments...:\n   0\n   #\\m"




2 points by akkartik 26 days ago | link

Yes, this is a bug in Arc 3.1: http://arclanguage.org/item?id=17699 [1]

Use Anarki or Anarki's stable branch. The latter is like Arc 3.1 but with a couple of bugfixes.

More details: http://arclanguage.github.io

[1] via google: 'site:arclanguage.org string-set contract violation' :D

reply

2 points by jsgrahamus 24 days ago | link

Windows 10: When I put the anarki folder in D:\, calling it worked fine.

However, when I put the folder in D:\Steve - D\Apps\, I got the following: D:\Steve - D\Apps\anarki>arc.cmd default-load-handler: cannot open module file module path: #<path:D:\Steve> path: D:\Steve system error: The system cannot find the file specified.; errid=2

I figure it has to do with spaces in the pathname, but unsure how to fix it.

reply

2 points by akkartik 24 days ago | link

It sounds like we need to put quotes around the '%arc_dir%boot.rkt' in arc.cmd: https://stackoverflow.com/questions/1851012/set-a-path-varia...

Can you check if that fixes it?

reply

2 points by jsgrahamus 24 days ago | link

That did it.

Thanks, akkartik!

reply

1 point by akkartik 24 days ago | link

Thanks! Wanna submit a Pull Request? ^_^

Not a big deal, I can do it too. But if it's easy you'd get to add your name to the repo :) Let me know.

reply

2 points by jsgrahamus 23 days ago | link

Sure. Never done such before. Where are instructions for it?

reply

1 point by akkartik 23 days ago | link

Maybe this will get too involved. Do you have experience with git, say making commits and so on?

Wanna switch to email? If you click on my username, my profile has my email address.

reply

3 points by jsgrahamus 26 days ago | link

Invoked by racket -f as.scm

reply