Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Gary Scott <garylscott@xxxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 17:07:09 GMT
Dan Nagle wrote:
Hello,Boy, I'm not sure why people are going so far off in the weeds. What I proposed does not alter existing fixed length strings or literals in any way.
Gary Scott wrote:
> glen herrmannsfeldt wrote:
>
>> jamesgiles@xxxxxxx wrote:
>>> So, string "literals" are not only *not* literal (meaning
>>> the same as their appearance) but aren't even compile-time
>>> constants anymore? And that's "a minor extension"?
>
> Fairly minor, you still have existing literals processed exactly as
> expected. Special processing only by application of special syntax.
I think control characters and graphic characters are rather different.
Graphic characters may be displayed via a single graphic in source text.
Control characters cannot. Being capable of being a part of source code
in a one-to-one way, seems to me to be fairly fundamental.
A general substitution procedure means to take one set of graphic
characters and replace them by another set of graphic characters
when they appear in a third set of graphic characters. That's rather
different from processing control characters.
Fortran doesn't handle control characters in any systematic way.
I think that's a shortcoming of Fortran, but I've lost that battle
every time I've tried to do something about it.
> I wasn't intending to limit to compile time only. This type of
> substitution already exists in many products I use. It is extremely
> useful. Yes, it would require some run-time support. Come on guys,
> show a little imagination.
A programmer may already use the c_<cc> (where <cc> names a control
character) constants. They may be used to insert the most frequently
used control characters into graphic strings as needed.
Defining a new category of character is a major undertaking,
it's not a matter of a lack of imagination. And a proposed syntax
doesn't change that. What, exactly, are the semantics to be supported
by the proposed syntax? That is, what, exactly are the semantics
of the new category of character?
--
Gary Scott
mailto:garylscott@sbcglobal dot net
Fortran Library: http://www.fortranlib.com
Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
If you want to do the impossible, don't hire an expert because he knows it can't be done.
-- Henry Ford
.
- Follow-Ups:
- References:
- gfortran diagnostics and so on
- From: James Van Buskirk
- Re: gfortran diagnostics and so on
- From: Richard Maine
- Re: gfortran diagnostics and so on
- From: Craig Dedo
- Re: gfortran diagnostics and so on
- From: Gary Scott
- Re: gfortran diagnostics and so on
- From: Craig Dedo
- Re: gfortran diagnostics and so on
- From: jamesgiles@xxxxxxx
- C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Craig Dedo
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: James Van Buskirk
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Craig Dedo
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Gary Scott
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: jamesgiles@xxxxxxx
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Gary Scott
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: jamesgiles@xxxxxxx
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Gary Scott
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: jamesgiles@xxxxxxx
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: glen herrmannsfeldt
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Gary Scott
- Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- From: Dan Nagle
- gfortran diagnostics and so on
- Prev by Date: Re: More gfortran and BIND(C)
- Next by Date: Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- Previous by thread: Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- Next by thread: Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- Index(es):
Relevant Pages
|
|