Re: file function purpose

2018-10-17 Thread Curtis
Thanks for taking the time to explain. I understand, now. On Wed, Oct 17, 2018, 4:43 PM wrote: > Typo, in my example (car (file)) of course returns "somepath/" (contains > the directory separator '/'). > > You can easily test the behaviour by creating a file foo.l containing > the following

Re: file function purpose

2018-10-17 Thread andreas
Typo, in my example (car (file)) of course returns "somepath/" (contains the directory separator '/'). You can easily test the behaviour by creating a file foo.l containing the following single line: (out NIL (prinl (car (file Then start pil repl and load this file once directly without

Re: file function purpose

2018-10-17 Thread andreas
Hi Curtis The purpose of (file) and the given examples makes only really sense in a specific context, which indeed is not further explained there. Additionally, for understanding this it's important to know that: During execution of (load), the loaded file is the current input stream. Meant

Re: file function purpose

2018-10-17 Thread Curtis
What I mean to say is, it looks as though, from where "file" is being called, it would always return NIL. On Wed, Oct 17, 2018 at 1:19 PM Curtis wrote: > > I'm a little confused by the purpose of the (file) function's use in > the example given here: https://software-lab.de/doc/refF.html#file >

file function purpose

2018-10-17 Thread Curtis
I'm a little confused by the purpose of the (file) function's use in the example given here: https://software-lab.de/doc/refF.html#file The example is: (load (pack (car (file)) "localFile.l")) # Load a file in same directory But, doesn't (load "localFile.l") do the same thing? I noticed the