Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!yale!mintaka!snorkelwacker.mit.edu!ai-lab!rice-chex!rpk From: rpk@rice-chex.ai.mit.edu (Robert Krajewski) Newsgroups: comp.lang.c++ Subject: const Performance benefits {Was: const is not object-oriented} Summary: Why bother ? Message-ID: <11935@life.ai.mit.edu> Date: 16 Nov 90 22:44:59 GMT References: <13050@cadillac.CAD.MCC.COM> <1990Nov12.184240.23430@odin.corp.sgi.com> Sender: news@ai.mit.edu Organization: MIT Artificial Intelligence Laboratory Lines: 10 I'm no language innocent, but I'm not familiar with the performance benefits of using const. (I'm certainly aware of the safety benefits.) The only one I could think of is that the compiler could re-order function calls in expressions. ---- Robert P. Krajewski Internet: rpk@ai.mit.edu ; Lotus: robert_krajewski.lotus@crd.dnet.lotus.com