Re: scm_defined_p(sym, env)

2011-08-24 Thread Richard Shann
Thanks for this, I see there is also scm_is_true to take care of the possibility that SCM_BOOL_T might not be a scalar type, we should be using that too. Richard On Wed, 2011-08-24 at 12:01 -0400, guile-user-requ...@gnu.org wrote: > > Richard Shann writes: > > > I didn't find the SCM_UNBNDP()

Re: Reader syntax for accessing arrays

2011-08-24 Thread Johan Hidding
Hi, I think it is a question of philosophy. The suggested [] syntax contains the scent of both infix notation (would [7 '* 6] work?) and work on arrays in stead of lists (also in the case of object member reference; the most straight forward implementation would be having a memory offset assigned t

Re: Reader syntax for accessing arrays

2011-08-24 Thread Panicz Maciej Godek
Hello, >>> Otherwise you could make a wrapper around the array in the form of a >>> closure. In that case, your example could be written >>> (*=! (a i j) 2) > > You could even write macros for this.  I would actually find it more > elegant than additional syntax. The *=! operator could be easily

Re: Reader syntax for accessing arrays

2011-08-24 Thread Ludovic Courtès
Hi, Panicz Maciej Godek skribis: >> Hi Maciej, >> I've been thinking among the same lines. At the same time this syntax could >> be used to access members of a 'struct' or 'class' object. It should be >> relatively simple to write a small interpreter (or maybe a pre-compiler). > > I thought that