cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Kevin <krugman AT nospam DOT demon DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Pointers vs subscripting. |
Date: | Wed, 29 Sep 1999 22:48:13 +0100 |
Message-ID: | <QIbyN9jI2fdBqTToI8WDui1c9Rdn@4ax.com> |
NNTP-Posting-Host: | reality-bytes.demon.co.uk |
X-NNTP-Posting-Host: | reality-bytes.demon.co.uk:212.228.30.60 |
X-Trace: | news.demon.co.uk 938641762 nnrp-04:26064 NO-IDENT reality-bytes.demon.co.uk:212.228.30.60 |
X-Complaints-To: | abuse AT demon DOT net |
X-Newsreader: | Forte Agent 1.6/32.525 |
MIME-Version: | 1.0 |
Lines: | 21 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi all, Ive always gone to great lengths to avoid subscripting arrays and have gone to lots of trouble to use pointers (at least in the most frequently accessed loops, I don't usualy bother with program initialisation things). I have understood that this is the quicker way of doing things. Is this still the case or do modern compilers optimise this automagically now ? nearly all of the tutorials I look at use subscripting, I guess this is to make it easier to understand ? I realsise that a little experimentation would probably answer this queastion for me, but I'm posting another message here at the same time so thought I'd just ask a quickie. I would welcome other peoples opinion on this. Kevin.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |