I'm working on a project in which it would be very useful to be able to easily determine how many characters were consumed in the course of a read operation, in a similar fashion to the way that Common Lisp's read-from-string returns as a second value the index of the next character of the input past the end of the object that was read. I want to, for example, read Clojure values from a buffer and keep track of where in the buffer they were read from.
Anyone have any good ideas of how to accomplish this without some level of reimplementation of read? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en