Re: pointer questions



Robert A Duff wrote:
Maybe the kinds of programs I write are different.  Question for those
who rarely use access types: what sort of application areas are you
talking about?  Mine are usually software development tools -- such as
compilers.

Embedded defence apps and I can't remember the last time I needed an access type!


There's no need in this sort of app, as you know at compile time what the maximum number of anything your system is required to deal with, so you can always use a lookup table of some sort (even if it has an 'In_Use : Boolean' field/discriminant.

Cheers

-- Martin
.



Relevant Pages

  • Re: pointer questions
    ... who rarely use access types: what sort of application areas are you talking about? ... Mine are usually software development tools -- such as compilers. ... There's no need in this sort of app, as you know at compile time what the maximum number of anything your system is required to deal with, so you can always use a lookup table of some sort (even if it has an 'In_Use: ... for the reasons you cite (as well as related reasons having to do with predictability and the consequences of errors.) ...
    (comp.lang.ada)
  • Re: pointer questions
    ... There's no need in this sort of app, as you know at compile time what the maximum number of anything your system is required to deal with, so you can always use a lookup table of some sort (even if it has an 'In_Use: ... Now that is exactly the domain where I would expect to not see access types, for the reasons you cite (as well as related reasons having to do with predictability and the consequences of errors.) ...
    (comp.lang.ada)
  • Re: trees
    ... What sort of language is it, and what sort of ng is this, where people ... Socialism would work, but as the 1930s wore on, fear of saying the ... the type and replace sizeof with the proper integer at compile time. ...
    (comp.lang.c)
  • Re: Newbie Q: How can I evaluate a form?
    ... > like an obvious sort of indirection to use every now and then. ... according to the normal evaluation rules of the language. ... be known at compile time (e.g. a user is going to type arbitrary forms ...
    (comp.lang.lisp)
  • Re: Parsers for extensible grammars?
    ... other instances of the parser are augmented with additional ... commands/syntax. ... [These additions are known at compile time, ... It is the sort of thing that Forth ...
    (comp.arch.embedded)