Re: Teach myself C++.



On Jul 24, 1:35 pm, Tom St Denis <t...@xxxxxxx> wrote:
To return to the OP he's looking [presumably] to implement his cipher
in something other than ADA.  He's better served writing it in C to
broaden it's application (well he's better served by reading crypto
papers and not trolling usenet... but I digress...) than writing it in
C++ and narrowing it's scope.

It's not that you can't write something like an ECC library [or
whatever] in C++, it's that you narrow [needlessly] it's applicable
scope in doing so.

But there a limit to what is considered reasonable.

For example, there was once a machine with 9-bit bytes, which,
technically, the C standard allows. The programmer might decide if his
code should support such bytes or not.

The 1KB example you gave is not so drastic, but would be regarded by
many as being a fringe case.

The question is whether C++ is beneficial, in general, where general
has an extremely large scope compared to fringe cases.

It should also be noted that there is not any mystery in C++. C++ is
as deterministic as C, because in both, there is what the standard
prescribes, and what it does not, and most programmers know what they
know based on reasonable deduction of how a they would do it had they
been the author of compiler, which generally turns out to be true,
assuming, of course, that the programmer knows what's going on.

The only difference is that certain operations in C++ tend to do more
than certain operations in C, but the same reasonable/unreasonable
assumptions can be made.

-Le Chaud Lapin-
.



Relevant Pages

  • Re: Aggregation vs composition
    ... which is indeed something a programmer has to be aware of. ... >> with a dead reference. ... > That is where the true lifetime responsibility lies... ... and there is no risk of B going out of scope before C wants this to happen. ...
    (comp.object)
  • Re: I thought this was the one that worked?
    ... With static scoping, a variable always refers to its nearest ... dynamic scope forces the programmer to anticipate ... the term "closure" in computer science is derived from the ...
    (comp.lang.ruby)
  • Re: reading strings from terminal and writing them to a file
    ... a partial quote referring to lexical scope: ... Static scope is standard in modern functional ... since its binding structure can be understood in isolation. ... dynamic scope forces the programmer to anticipate all ...
    (comp.lang.lisp)
  • Re: Poor VB Programming
    ... I had a question once from a programmer that couldn't understand why his ... but also had a scope issue ... ... "AustinMN" wrote in message ...
    (microsoft.public.sqlserver.programming)
  • Re: Poor VB Programming
    ... I had a question once from a programmer that couldn't understand why his ... but also had a scope issue ... ... "AustinMN" wrote in message ...
    (microsoft.public.vb.database)

Quantcast