Arc Forumnew | comments | leaders | submitlogin
Found and fixed bug in todisk
6 points by highCs 709 days ago | 2 comments
Hi,

  (diskvar b (+ (pwd) "var\\objs"))
  nil
  (= b 3)
  3
  (todisk b)
  path->string: contract violation
    expected: path?
    given: "[sensored]\\var\\objs.14469922991446992299599"
    context...:
      writefile
To fix it, go in arc.arc line 2685: remove path->string since make-temporary-file return a string already


3 points by akkartik 709 days ago | link

Thanks! I gather you're on windows? I couldn't reproduce the problem, but I can confirm that things seem to continue to work after your fix. I've updated anarki: https://github.com/arclanguage/anarki/commit/7ae9fbc782

-----

1 point by highCs 709 days ago | link

> I gather you're on windows?

Yes.

-----