Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. I'm a bit puzzled by this question. To my understanding,

Re: SEXP?

2013-07-01 Thread Alexander Burger
Hi Thorsten, I'm a bit puzzled by this question. To my understanding, every possible expression in PicoLisp is a SEXP. Even auto-quoting expressions like ... .. and was a bit confused when asking, I probably meant 'list' instead of SEXP. ... then invalid file names fall into category

Re: SEXP?

2013-07-01 Thread dexen deVries
On Monday 01 of July 2013 07:39:49 you wrote: Hi Thorsten, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. how about (pair 'any) ? basically the opposite of

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
dexen deVries dexen.devr...@gmail.com writes: On Monday 01 of July 2013 07:39:49 you wrote: Hi Thorsten, I wonder if there is a way in PicoLisp to check if some function argument is a SEXP, i.e. if something like a function 'sexp? exists that returns T if the argument is a SEXP. how

Re: SEXP?

2013-07-01 Thread Joe Bogner
Hi Thorsten, I've used fun? to determine if an argument had the proper form of something that was executable or if it was data. It may not work in all cases, but it was sufficient for my use case. As Alex mentioned, it won't let you know whether it's actually executable or not. I think of it as

Re: SEXP?

2013-07-01 Thread Thorsten Jolitz
Joe Bogner joebog...@gmail.com writes: Hi Joe, I've used fun? to determine if an argument had the proper form of something that was executable or if it was data. It may not work in all cases, but it was sufficient for my use case.  As Alex mentioned, it won't let you know whether it's