🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5408

Re: Query about typedef type-checking: the answer!

#5408
From: Norman Diamond
Date: Tue, 11 Oct 1988 00:38
19 lines
1444 bytes
In article <96@cybaswan.UUCP>, iiit-sh@cybaswan.UUCP (Steve Hosgood) writes:
 
> What I really need then, is a feature like typedef, but which actually creates
> a *new* type, not just an alias.

If you need it badly enough, put it in a struct.

> I will not be requesting such a feature! I
> know full well that such a 'feature' would need the ability to create functions
> that are infix operators for these 'new' types etc, etc. In fact, I seem to
> remember that all that got discussed a month or two back in this group.

If you need it badly enough, there are half a dozen other popular
programming languages that already do this for you.
-- 
-------------------------------------------------------------------------------
  The above opinions are my own.   |   Norman Diamond
  If they're also your opinions,   |   Sony Computer Science Laboratory, Inc.
  you're infringing my copyright.  |   diamond%csl.sony.jp@relay.cs.net
Technical Details
Message-ID: <10032@socslgw.csl.sony.JUNET>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!texbell!sugar!ficc!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond
References: <96@cybaswan.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!texbell!sugar!ficc!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond
From: diamond@csl.sony.JUNET (Norman Diamond)
Newsgroups: comp.std.c
Subject: Re: Query about typedef type-checking: the answer!
Keywords: warnings, ANSI, typedef, type checking
Message-ID: <10032@socslgw.csl.sony.JUNET>
Date: 11 Oct 88 00:38:44 GMT
References: <96@cybaswan.UUCP>
Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan
Lines: 19