> Hi. I am teaching a Fortran 90 course and I have a question.
> I was showing the
> class kinds for character constants. A student asked why
> would we want to use a
> kind for a character constant.
One good use would be for an implementation which supported a multi-byte
character set, for example, UNICODE. Then you might have CHARACTER(KIND=2)
to designate UNICODE (16-bit) characters. (Note that I simply suggested 2
as the kind number here - there's no requirement that it be any specific
value other than different from "default character".)
Steve Lionel
Compaq Fortran Engineering
http://www.compaq.com/fortran
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|