delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/28/22:15:13

From: Sean Proctor <sproctor AT ccs DOT neu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Are THESE two statements EQUAL?
Message-ID: <mvbllska0qcuhbt0iau00jdn2vp078mon7@4ax.com>
References: <5t7klskbj285civf9serk693otnho6t5j0 AT 4ax DOT com> <7qmkls0k46jupmhklc5sqesf999hn7vmjl AT 4ax DOT com> <8F61A359BASINANUNUR AT 132 DOT 236 DOT 56 DOT 8>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 54
Date: Thu, 29 Jun 2000 02:10:58 GMT
NNTP-Posting-Host: 207.16.153.202
X-Complaints-To: Abuse Role <abuse AT enter DOT net>, We Care <abuse AT newsread DOT com>
X-Trace: newshog.newsread.com 962244658 207.16.153.202 (Wed, 28 Jun 2000 22:10:58 EDT)
NNTP-Posting-Date: Wed, 28 Jun 2000 22:10:58 EDT
Organization: ENTER.net (enter.net)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 28 Jun 2000 21:09:51 GMT, Sinan_Unur AT mail DOT com (A. Sinan Unur)
wrote:

>radsmail AT juno DOT com (Radical NetSurfer) wrote in 
><7qmkls0k46jupmhklc5sqesf999hn7vmjl AT 4ax DOT com>:
>
>>They most certainly ARE on topic, as I'm having SegFaults
>>specific to DJ _and_ allegro, BITMAP* is an Allegro object,
>>as it Pallete.... thus the relevancy.
>
>just my two cents:
>
>the question of whether an array of pointers to a data structure is the same 
>thing as an array of instances of another data structure is independent of 
>Allegro and DJGPP regardless of the specific data types involved. just as a 
>post regarding a C program for computing distances between points in Manhattan 
>is not on-topic for nyc.market.housing, this question is not on-topic for 
>c.o.m.d. either. (you can find the charter of this group at 
>http://www.delorie.com/djgpp/mailing-lists/comp.os.msdos.djgpp.html)
>
>however, i do realize that i am continuing this trivial argument at DJ's 
>expense, so i'll shut up regarding this issue.
>
>anyway, do check out: http://www.eskimo.com/~scs/cclass/int/top.html. FYI, the 
>author of this, Steve Summit, maintains the comp.lang.c FAQ list, another 
>reference which you should keep handy.
>
>Sinan.

ummm, you're just wrong...

struct blah
{
	int whatever;
};

typedef struct blah	blub;
typedef struct *blah	blab;

blub *a[60];
blah b[60];

oh look... they're the same... huh... imagine the irony... one type...
and a pointer to a different type... *and they're the same thing*!!!
Don't hate me, I'm just in a bad mood.

Sean

PS onto the original question... I don't think they're the same... I'd
have to read the docs to be sure, but I think palette is an array of
rgb pixels or however they're defined... while bitmap is a 2d array of
pixels with bounds, etc included. and I do think that was on topic as
it was related to allegro... not some random library unrelated to
djgpp...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019