Re: D5 Constant expression expected

From: Bruce Roberts (ber_at_bounceitattcanada.xnet)
Date: 04/19/04


Date: Mon, 19 Apr 2004 15:49:28 -0400

I suspect that Borland is headed in roughly the direction that you have
suggested but with the intention of keeping the Const keyword.

I personally would like to see Const kept for the declaration of 'true'
constants, including those of the typed variety. The word is familiar to
those familiar with Pascal and is much more descriptive, IMO, than Preset.

While Static is a familiar word, especially to those familiar with the C
family of languages, I'd much rather see Persistent as the keyword used to
identify local variables that have a local scope but a global lifetime. In
fact I'd like to see the keyword added syntactically as a modifier to
variable declarations, rather than introducing a new declarative section.



Relevant Pages

  • Re: How do java programmers cope with java missing c++ const?
    ... to pass a const reference to a mutable object as can be done in c++. ... I also found the 'const' keyword in C++ to be very useful, ... It is a modifier used to change the characteristics to ... modified and must be initialized at the point of declaration. ...
    (comp.lang.java.programmer)
  • Re: Statement functions
    ... It would be a simple way to avoid ambiguity with ... array assignment, especially in the case of an internal subprogram. ... same name and you forget to give a local type declaration ... As for the keyword STMT, I'm sure that STATEMENT is a better Fortran-istic choice. ...
    (comp.lang.fortran)
  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... use dangling pointers -- so the & operator in C or C++ is more like ... > the array declaration. ... if declared so or if allocated in the heap by ... We should, instead, have allowed the "aliased" keyword on parameters. ...
    (comp.lang.ada)
  • Re: Loose all formating and most IntelliSense when I switch to cod
    ... None of the keywords are highlighted and when I start typing code ... >> isn't formatting any of it correctly and my local variables and objects ... Most System object don't have ... I can get the keyword highlighting back when I ...
    (microsoft.public.vsnet.ide)
  • Re: volatile keyword and the compact framework
    ... >> framework with regard to using the 'volatile' keyword, ... >> local variables. ...
    (microsoft.public.windowsce.app.development)