Query about typedef type-checking: the answer!

Norman Diamond diamond at csl.sony.JUNET
Tue Oct 11 10:38:44 AEST 1988


In article <96 at cybaswan.UUCP>, iiit-sh at 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 at relay.cs.net



More information about the Comp.std.c mailing list