Re: Declaring many objects

From: nog (sodthis.nospam_at_gmx.net)
Date: 02/17/04


Date: Tue, 17 Feb 2004 17:58:59 -0000

In article <40325773_3@news1.prserv.net>,
nobody@nowhere.com says...
>
> "nog" <sodthis.nospam@gmx.net> wrote in message
> news:MPG.1a9c50dbe875db06989b5e@News.individual.DE...
> >- my understanding
> > with arrays is that they are confined to a single data
> > type. I've got differing data types, with each row (char,
> > char, date) where date is 3 integers held in a
> > compositioned date class.
>
> Your array will just have one data type - it will be a new data type that
> happens to be one you invented. This data type will contain other data
> types, but to the array it will look like just one data type - whatever your
> new struct is.

Right, it's becoming clear. Thanks Jeff.



Relevant Pages

  • Re: how does your language... make a map?
    ... Again, storing the map ... push(array,element) just appends the element to the array. ... Int is the standard integer type, which leaves MapCell (a data type) ... data MapCell(Terrain terrain, Occupant occupant); ...
    (rec.games.roguelike.development)
  • Re: Doc/View question
    ... elements in the array to get how many bytes of stack space it requires. ... sequence of bytes that is long enough to hold the entire contents of the array. ... data type" for this purpose! ... So then it appears that I can put structs of different member types into CArray ...
    (microsoft.public.vc.mfc)
  • Re: Dim, var, & why?
    ... I think you misunderstood ... Calling a VB Array an "Object" is obviously incorrect in the context of VB. ... In VB they are a Data Type. ... and all types in dotNet derive from object. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB error
    ... I thought VB only works with Variants, regardless on which Data Type ... used the array syntax correctly later on inside your For-Next loop. ... your assignment statements should look like this.... ...
    (microsoft.public.excel.programming)
  • Re: IAS WPS Extension DLL With EAP-TLV URI AVP Using Guest Authentication
    ... >> Ok, as near as I can tell, there is no BINARY data type in Microsoft's ... >> should be three USHORTs instead of one UCHAR and two USHORTs. ... >> a raatMinimum entry to denote the end of the array. ...
    (microsoft.public.internet.radius)