delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/13/07:36:34

From: "Tonu Aas" <tonu AT ids DOT ee>
Newsgroups: comp.os.msdos.djgpp
References: <3a30b1a8$0$24264 AT diablo DOT uninet DOT ee> <006101c06103$dc9dd020$aa4d57cb AT spunky> <3a34d45e$0$24309 AT diablo DOT uninet DOT ee> <01c06396$d935cd80$b8247d81 AT doug> <83n1e2963c DOT fsf AT mercury DOT st DOT hmc DOT edu> <913sfo$fil$1 AT bob DOT news DOT rcn DOT net>
Subject: Re: Help! function typedef
Date: Wed, 13 Dec 2000 14:24:43 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Lines: 24
Message-ID: <3a376c34$0$24311@diablo.uninet.ee>
NNTP-Posting-Host: 194.204.53.21
X-Trace: diablo.uninet.ee 976710708 24311 194.204.53.21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> The valid C he might be thinking of is as follows:
>
>     typedef int MY_FUNC_TYPE(void);
>     MY_FUNC_TYPE func;
O.k., thats better than my example.

> Actually declaring functions in this manner is less useful, because you
> can *only* declare (and prototype) a function with the above; you can't
> define one.

:(( bad luck I see.

    My logic says that if so, then we can ONLY declare :
typedef int my_type;

And after I cant define any actual variable ?
my_type instance;     ???

O.k. thats all.
My problem doesnt have good solution.

Tõnu.


- Raw text -


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