Re: The void** pointer breaking symmetry?



On Tue, 09 May 2006 05:51:10 +0000,
Richard Heathfield <invalid@xxxxxxxxxxxxxxx> wrote
in Msg. <xIidnXWpU6UisP3ZRVny3g@xxxxxx>

struct FOO blankfoo = {0};

[...]

foo[i] = blankfoo;

Funny! I never realized that the assignment operator works with structs.
Just never thought of it. I would have used memcpy in this line (as in
fact I have in the past. A bit of code cleanup is in order now).

robert
.



Relevant Pages

  • Re: why no struct inheritance?
    ... depends on the definition of the assignment operator. ... No argument against derivation of structs. ... To not have a conversion available from a derived type to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: why no struct inheritance?
    ... If this would compile, the expected behavior is ... an object ob type ExtendedPoint is created (memory allocated + fully ... depends on the definition of the assignment operator. ... No argument against derivation of structs. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Best way to do this?
    ... Since the names and structs of the controls behave the same in WinForm and ASP.NET are identical, so most of the codes behind will work properly. ... HttpContext.Current.Page.Response.Write("alert('"+ msg ... what you have to do is to design the presentation web pages. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: malloc vs new for POD types
    ... You don't update the reference count if you blindly copy ... constructor and assignment operator. ... purpose is to do something important if the object is copied or assigned. ...
    (comp.lang.cpp)
  • Re: Mins Count
    ... >> Funny thing is that his latest msg is dated 24 hrs in the future. ...
    (sci.astro.amateur)