[M3devel] Do we really want to truncate wide chars?

Olaf Wagner wagner at elegosoft.com
Fri May 24 11:43:45 CEST 2013


On Thu, 23 May 2013 19:10:10 -0500
"Rodney M. Bates" <rodney_bates at lcwb.coop> wrote:

> Right now, the implementations of Text.GetChar and Text.SetChars that we got with
> cm3, silently truncate any of the requested characters whose value won't fit in
> the range of CHAR.  Do we really want this behavior?  Is there any existing code
> that depends on it?  I can't imagine a case where client code would want this.
> 
> I propose we change it to either give a checked runtime error or raise an
> explicitly declared exception, if the value won't fit in a CHAR.
> 
> Any thoughts?

I'd vote for a runtime error.

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
Geschäftsführer: Michael Diers, Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list