From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: The extension of Is_Basic to unicode (about AI12-0260-1)
Date: Thu, 12 Apr 2018 07:14:12 +0200
Date: 2018-04-12T07:14:12+02:00 [thread overview]
Message-ID: <pampv2$1na7$1@gioia.aioe.org> (raw)
In-Reply-To: 6518518c-5153-4afd-a2c5-d173ec0fe268@googlegroups.com
Le 12/04/2018 à 01:57, ytomino a écrit :
> If Character.Handling.Is_Basic can not be changed because
> compatibility, still more, this *overloading* will create new problem
> for the future.
>
> For example, on rewriting some applications from Character to
> Wide_Character, it may be imagined that two meanings of Is_Basic will
> confuse.
> Or, they makes hard to use "use clause", or use as a generic formal
> subprogram.
If you are adapting a program to use the full BMP instead of Latin1,
expect many more difficult issues and/or incompatibilities than this one...
> Excuse me for repeating, should new function name be used for new
> definition?
>
> function Is_Base (Item : Wide_Character) return Boolean; -- according with Unicode
> function Is_Basic (Item : Wide_Character) return Boolean is (Is_Base (Item) and Is_Letter (Item)); -- for compatibility
This is technically doable, but not obviously desirable. This
incompatibility seems to me to be a candidate to the following comment,
already used for some other incompatibilities:
"This incompatibility is likely to fix more bugs than it will create"
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
prev parent reply other threads:[~2018-04-12 5:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-11 0:52 The extension of Is_Basic to unicode (about AI12-0260-1) ytomino
2018-04-11 3:38 ` J-P. Rosen
2018-04-11 3:52 ` ytomino
2018-04-11 14:32 ` Dan'l Miller
2018-04-11 20:54 ` J-P. Rosen
2018-04-11 22:20 ` Randy Brukardt
2018-04-11 23:57 ` ytomino
2018-04-12 5:14 ` J-P. Rosen [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox