Re: Proper way to return a string
- From: "Terence" <tbwright@xxxxxxxxx>
- Date: 28 Dec 2006 13:56:18 -0800
Richard E Maine wrote:
Terence <tbwright@xxxxxxxxx> wrote:
For any string operation I always use a function call because this can
return an error code,
I've noticed that I usually disagree with almost every style preference
Terence expresses. If there is an exact opposite of his preference,
you'll usually be right in guessing that opposite to be my preference.
It applies here.
For me, returning an error code is a reason to avoid using a function.
Richard almost always seems to misunderstand the power of what I do, my
way.
For me, Fortran is a tool, not revealed truth.
The "error"code returned that I suggested is almost never a error
signal but an entry termination signal, and the code returned in
parallel with the string result, is the integer-2 keyboard code of the
last keystroke input, which allows signalling of function keys, pad
keys, return, tab and back-tab and so on. VERY useful!
Any insert and deletes are done internally before returning and not
signalled.
When testing for input on a test-or-wait basis, the return code says
either "no key" or "this is the key number and symbol code" (which an
be left in the buffer)..
Routines like this are the basis and underlying strength of our Text
User Interface for Windows programming, screen, keyboard and mouse
control, without expensive add-on software often needed to complete an
emasculated Fortran, - which wasn't MY fault, even though I worked on
early versions of it in IBM. I go to a different church from the
purists. We produce profitable tools for industry that are trusted to
work.
.
- References:
- Proper way to return a string
- From: Jeremy
- Re: Proper way to return a string
- From: Steven G. Kargl
- Re: Proper way to return a string
- From: Gordon Sande
- Re: Proper way to return a string
- From: Steven G. Kargl
- Re: Proper way to return a string
- From: Terence
- Re: Proper way to return a string
- From: Richard E Maine
- Proper way to return a string
- Prev by Date: Re: How to transfer a file in an array
- Next by Date: Re: Problem with my split routine I am not understanding
- Previous by thread: Re: Proper way to return a string
- Next by thread: Re: Proper way to return a string
- Index(es):
Relevant Pages
|