Lisp vs. C++ (not off-topic)

Lionello Lunesu lio at lunesu.remove.com
Fri Oct 13 08:09:48 PDT 2006


While trying to understand the c++ implementation, I found out what the 
problem was. The c++ version does not allow a digit at position k if 
there's a word in the dictionary that matches the digits at k..n, even 
if that word cannot actually be used in the encoding because of a 
mismatch anywhere after n.

For example 30694, there IS a word matching "306", "sei" and therefor, 
the result "3-/0--69-4: 3 echt" is not considered..

L.



More information about the Digitalmars-d mailing list