Is all this Invarient **** er... stuff, premature optimisation?
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 28 06:43:58 PDT 2008
<p9e883002 at sneakemail.com> wrote
> Hi all,
>
> 'scuse me for not being familiar with previous or ongoing discussion on
> this
> subject, but I'm just coming back to D after a couple of years away.
>
> I have some strings read in from external source that I need to convert to
> uppercase. A quick look at Phobos and I find std.string has a toupper
> method.
> <very good example case removed>
This is all not an issue if Walter adopts 'scoped const' contracts.
http://d.puremagic.com/issues/show_bug.cgi?id=1961
The current con for this method is that it is another 'confusing' const
syntax. So is what I propose more confusing, or is what this poor developer
had to go through more confusing?
-Steve
More information about the Digitalmars-d
mailing list