develooper Front page | perl.perl6.internals | Postings from February 2002

Re: [PATCH] Nearly the last of the warnings.

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
February 6, 2002 07:07
Subject:
Re: [PATCH] Nearly the last of the warnings.
Message ID:
Pine.SOL.4.10.10202061004460.3578-100000@maxwell.phys.lafayette.edu
On Wed, 6 Feb 2002, Simon Cozens wrote:

> Andy Dougherty:
> > Well, I know (at least) two ways to get rid of the warnings. I just don't
> > know which one's right.  For example, making the bytecode be type
> > opcode_t* instead of char* gets rid of a lot of them
> 
> Generally when I see char* in the source, I wonder why it's wrong and
> what it should be instead. If you just *assume* that char* is evil,
> allow yourself to be persuaded on the rare occasions that we actually do
> need it.

Oh, agreed in general.  Specifically, though, is this one of those rare
occasions?  Though I haven't done a complete audit of the source (and
would welcome specific pointers) all the cases I've looked at so far treat
the bytecode as a sequence of objects all of size sizeof(opcode_t).

-- 
    Andy Dougherty		doughera@lafayette.edu


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About