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

Don Clugston dac at nospam.com.au
Fri Oct 13 08:44:46 PDT 2006


Lionello Lunesu wrote:
> 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.

So the C++ version wasn't merely more complicated and slower than D, it 
was also wrong??



More information about the Digitalmars-d mailing list