Re: (long) An AES implementation for 32-bit platforms

From: Richard Herring (junk_at_[127.0.0.1)
Date: 06/17/03

  • Next message: Shill: "Re: More LTC timings..."
    Date: Tue, 17 Jun 2003 11:08:16 +0100
    
    

    In message <slrnbesirs.18j.mdw@tux.nsict.org>, Mark Wooding
    <mdw@nsict.org> writes
    >
    >One of the main deficiencies in C++ is that you must explicitly cast
    >`void *' pointers to other kinds of things. So you can't just say
    >
    > foo *x = malloc(sizeof(*x));
    >
    >you have to say `(foo *)malloc...'. This is a good way of accidentally
    >losing `const' qualifiers.
    >
    >I find the other differences much less irksome -- this is the biggie.

    Why are you writing C in C++ ?

    The C++ idiom would be

    std::auto_ptr<foo> x(new foo);

    -- 
    Richard Herring
    

  • Next message: Shill: "Re: More LTC timings..."

    Relevant Pages

    • Re: Losing yourself.
      ... I said the title of my autobiography would be _Losing Yourself_ (or ... 'Kay - I guess I lose myself in the moment most often when I'm writing ... the words just fill up my brain and come out my fingers and I Lose ... I should say I'm getting it back in print, cuz I'm still having ...
      (alt.med.fibromyalgia)
    • Re: type compatible and const qualifier
      ...   number of arguments shall agree with the number of parameters. ... and the type pointed to by the left has all the qualifiers of the ... in my argument and (int const*) in the parameter, ...
      (comp.lang.c)
    • Re: type compatible and const qualifier
      ...   number of arguments shall agree with the number of parameters. ... and the type pointed to by the left has all the qualifiers of the ... in my argument and (int const*) in the parameter, ...
      (comp.lang.c)
    • Re: Italy vs Germany In Progress {R}
      ... They leaked goals like crazy in the confed cup, and they are doing it again. ... However, some other WC qualifiers seem to be having equally embarassing nights - like France, England, Poland and Sweden. ... Losing at home to a CONCACAF side is never a good result. ...
      (rec.sport.soccer)
    • Re: Remove Blank Line and/or Additional CRLF From End of File
      ... > per line Lawson extract file, so it can be imported into our check writing ... Const OverwriteIfExist = -1 ... Dim fso, strFiles, strSourceFile, strOutputFile, strOutputLine ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
      (microsoft.public.scripting.vbscript)

  • Quantcast