Arc Forumnew | comments | leaders | submitlogin
2 points by bOR_ 6180 days ago | link | parent

tempting reason to switch from arc2 to anarki :).If I understand right, I could make arc understand that if I have a list of lists, (mylist 3 2) wants the second position from the third list.

Nice, is this a something that you can influence locally, within a function, or is it a do-once-per-program thing of arc?

I'll keep it in mind when I'm extending and abstracting my first arc prog at http://bagofsouls.com/images/arc-life.arc :).



2 points by almkglor 6180 days ago | link

Yes, this is possible, although you should note that 'defcall is global (do-once-per-program)

-----

1 point by bOR_ 6179 days ago | link

Is it possible to have it in a local way? (per function / module)

-----

1 point by almkglor 6179 days ago | link

No, or rather not yet.

It might be possible to do so by using some sort of dynamic global (a la kennytilton's implementation some time back, but using 'thread-local objects to handle it).

-----