> -----Original Message-----
> From: Lionel, Steven [mailto:[log in to unmask]]
> Sent: 27 October 2000 18:29
> To: 'Robert Kernell'; [log in to unmask]
> Subject: RE: character kinds
>
>
> > 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
>
and you could then, for example, specify the kind of a character constant
that was being passed to a subroutine that expected a character argument of
that (non-default) kind. Would "save" having a variable of the right kind to
store the value in.
Simon Harding.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|