Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: dollar sign in variable name |
| Date | 2015-11-20 06:51 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n2mft0$3g5$2@speranza.aioe.org> (permalink) |
| References | <de259813-bcaf-4334-9fa8-a2cfff5d2251@googlegroups.com> <n2lpf3$aiu$1@dont-email.me> <de776ae5-d824-4039-a633-1ef7f45864c8@googlegroups.com> <a3bt4bdqaj0pvjmqm80jeut612dnliolmt@4ax.com> |
Robert Wessel <robertwessel2@yahoo.com> wrote: (snip on $ in names) > I assume this is for some kind of mechanical translation process? > Unless Fortran has suddenly started being case sensitive, I'd > implement some sort of escape scheme. Name all the Fortran variables > something like F_, and then use the underscore character as a > character escape in the name. No, Fortran still isn't case sensitive but can still call C routines that are. It is part of the C interoperability feature, I believe from Fortran 2003. > So a-z and 0-9 translate directly (as lower case letters), and _A, _B, > _C... are for dollar sign, underscore, etc. It's not super pretty, > but it would be portable, and fairly obvious when being looked at. Or > just use the upper case letters as substitutes for the specials. -- glen
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
dollar sign in variable name Jay Braun <lyngwyst@gmail.com> - 2015-11-19 16:18 -0800
Re: dollar sign in variable name BartC <bc@freeuk.com> - 2015-11-20 00:27 +0000
Re: dollar sign in variable name Jay Braun <lyngwyst@gmail.com> - 2015-11-19 16:29 -0800
Re: dollar sign in variable name Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-11-19 20:05 -0700
Re: dollar sign in variable name Richard Heathfield <rjh@cpax.org.uk> - 2015-11-20 00:30 +0000
Re: dollar sign in variable name Jay Braun <lyngwyst@gmail.com> - 2015-11-19 16:37 -0800
Re: dollar sign in variable name Ian Collins <ian-news@hotmail.com> - 2015-11-20 13:42 +1300
Re: dollar sign in variable name BartC <bc@freeuk.com> - 2015-11-20 00:47 +0000
Re: dollar sign in variable name Philipp Klaus Krause <pkk@spth.de> - 2015-11-21 17:24 +0100
Re: dollar sign in variable name Philip Lantz <prl@canterey.us> - 2015-11-22 15:37 -0800
Re: dollar sign in variable name Robert Wessel <robertwessel2@yahoo.com> - 2015-11-19 23:22 -0600
Re: dollar sign in variable name glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-20 06:51 +0000
Re: dollar sign in variable name Keith Thompson <kst-u@mib.org> - 2015-11-20 03:32 -0800
Re: dollar sign in variable name Ken Brody <kenbrody@spamcop.net> - 2015-11-23 13:27 -0500
Re: dollar sign in variable name Barry Schwarz <schwarzb@dqel.com> - 2015-11-19 16:41 -0800
Re: dollar sign in variable name glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-20 00:53 +0000
Re: dollar sign in variable name Geoff <geoff@invalid.invalid> - 2015-11-19 21:40 -0800
Re: dollar sign in variable name David Brown <david.brown@hesbynett.no> - 2015-11-20 11:04 +0100
Re: dollar sign in variable name Jay Braun <lyngwyst@gmail.com> - 2015-11-20 06:35 -0800
csiph-web