Hi,

I'm a new (and so far happy ;-) Chicken Scheme user. I'm facing a problem with port-position. The doc states that port-position "returns the current position of PORT as two values: row and column number".

So this function should return a pair of values (whatever column number means). But in the tests I've made so far only the row number seems to be returned (tested on the default input port, on file ports and on string ports).

Below are a code snippet and the corresponding csi output.

Hope this list is appropriate for this kind of message!

Thanks in advance for your help

Vince

============= (with-input-from-string "ab\ncd\nef" (lambda () (port-for-each (lambda (c) (print c ': (port-position))) read-char)))

============== CHICKEN (c) 2008-2021, The CHICKEN Team (c) 2000-2007, Felix L. Winkelmann Version 5.3.0 (rev e31bbee5) linux-unix-gnu-x86-64 [ 64bit dload ptables ] Type ,? for help. ; loading test.scm ... ; loading /usr/local/lib/chicken/11/chicken.port.import.so ... a:1 b:1 :2 c:2 d:2 :3 e:3 f:3

Reply via email to