Scusa, ma di cosa vi scandalizzate? > Anche Common Lisp lo permette, almeno 10 anni prima di PHP: > > $clisp -q -norc > [1]> (setf (fdefinition 'read-string) (get-macro-character #\")) > #<SYSTEM-FUNCTION SYSTEM::STRING-READER> > [2]> > (set-macro-character #\" > #'(lambda (stream char) > (let* ((buf (read-string stream char)) > (n (parse-integer buf :junk-allowed t))) > n))) > T > [3]> (+ "3viso" 2) > 5 >
Guarda ti credo sulla parola, non ho voglia di tirare fuori la stele di rosetta per tradurre :) Carlos -- If you have no voice, SCREAM! If you have no legs, RUN! If you have no hope, INVENT!
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python