<RhodiumToad>syntax-error is for use with syntax-rules, not syntax-case <lispmacs[work]>what is the easiest way to do a fixed-length shift-register object in Guile? I wanted to be able to push a value in the front of the array/list/whatever and have the back item disappear <RhodiumToad>queue implemented as vector with front/back indexes? <RhodiumToad>or just a front index if you don't need to consider the case when it's not full <lispmacs[work]>RhodiumToad: implemented by me, you mean...? Is there anything already available? I didn't want to have to write code to copy around the values, etc. if I could get away with it <lispmacs[work]>I suppose indexing a list is not to difficult, thinking about it <RhodiumToad>use a vector not a list, or you could use a circular list <lispmacs[work]>Guile Queues doesn't give the option to change implementation ...? <daviid>lispmacs[work]: i would ask in #scheme, and see if something exists that would either be portable or easy to port - maybe one of the pfds in scheme would fir, not sure, deque maybe (never used it) <daviid>The Deque data structure supports clockwise and anticlockwise rotations in O (1) time ... <rlb>Hmm, I did have to fix a few bugs but I switched lokke to wingo's fash some while back. If it's useful, I can dig up the last version lokke was using. Also had to fix some bugs in fash, and added fash-update, so see lokke for that too if you need it. <daviid>rlb: ah, so you don't have a fork and updated work of ijp's pfds implementation then, my mistake - one of us should do that, this is a very good and valuable work ... not to be lost if possible ... <rlb>(and I still need a real "dissoc", i.e. fash-delete) <lilyp>dsmith-work: that looks like macroexpand with extra steps :P <jpoiret>RhodiumToad: syntax-error is a special form in syntax-rules, but there is also a syntax-error macro defined in psyntax.scm <jpoiret>by the way, I see that great care has been made to be able to pass docstrings to (define-syntax symbol (lambda (x) docstring body...)), however, is there any way to view this docstring programatically? <jpoiret>like, is there any way to get the associated scheme value of a syntax? <lilyp>which will give you an equally wrong result when used with syntax-case :) <dsmith-work>"syntax-rules provides some syntax to effect this transformation more easily." ***janneke_ is now known as janneke