On Aug 15, 2016, at 4:22 PM, Chris Forster <[email protected]> wrote:

> here-path seems to be a string (rather than a path object), hence the 
> string->path call. It seems as though last isn't evaluating... and so 
> string->path is getting the whole list... but why?


You're right about the problem. `last` is in `racket/list`, which is not part 
of the default Pollen imports, which are derived from `#lang racket/base` 
(which has fewer default imports than `#lang racket`). It should suffice to add 
`racket/list` somewhere in your `local-require`:

◊(local-require racket/file racket/system racket/string racket/list)

BTW because Pollen treats any unbound identifier as a tag, this is an 
unavoidable yet also annoying error. You can override this behavior for any 
identifier by wrapping it with `def/c`, which will force it to behave as a 
bound identifier (or throw an error).


-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to