Frederik Ramm wrote:

> Returning an error should be no more difficult than throwing an  
> exception there if v.length exceeds 255, only thing I am not sure  
> about is whether Ruby will try to be smart and return the length  
> not in bytes but in characters...?

irb(main):001:0> 'fred'.length
=> 4
irb(main):002:0> 'fr\303\251d'.length
=> 5

(that's an é)

cheers
Richard
_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to