🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #41

Re: instance variable declarations..

#41
From: Ernest Prabhakar
Date: Sat, 12 Sep 1992 19:01
37 lines
2149 bytes
In article <1992Sep12.140413.744@stefki.toppoint.de> stefan@stefki.toppoint.de  
(Stefan Krause) writes:
> 
> When you've taken this step, repeating the instance variable
> declarations in the .m file, it comes into your mind that this is
> unnecessary redundancy.  What do you need in a  .h  file
> additionally to the instance variable and method declarations?
>
> Thus I need a way to write these statements in the .m file.
> And I use a simple awk-script to extract the .h
> file from the .m file. If you want to see this script then let me
> know.

I have spent a fair amount of time thinking about a generic 'mtoh' converter.   
You would also want the appropriate amount of support so Make would generate  
(and precompile!) the headers whenever 'substantive' changes occurred.  The  
only difference was that I was thinking of something like:
/*@
stuff for .h file
@*/
Instead of '#pragma .h' as the indicator of code for the '.h' file.  Which is  
more robust and general?

I may even get as far as writing a man page, even though it will be a while  
before I can code anything.  I would like a copy of your code, Stefan, just in  
case.  It does seem like this is something that should be taken care of  
automatically, doesn't it?

- Ernie P.


--
Ernest N. Prabhakar                  Caltech High Energy Physics
Member, League for Programming Freedom (league@prep.ai.mit.edu)
CaJUN President        NeXTMail:ernest@pundit.cithep.caltech.edu
"...and ourselves, your servants for Jesus sake." - II Cor 4:5b
#import <std/disclaimer.h>
Technical Details
Message-ID: <1992Sep12.190112.16178@cco.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!news
References: <1992Sep12.140413.744@stefki.toppoint.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.objective-c
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!news
From: ernest@pundit.cithep.caltech.edu (Ernest Prabhakar)
Subject: Re: instance variable declarations..
Message-ID: <1992Sep12.190112.16178@cco.caltech.edu>
Sender: news@cco.caltech.edu
Nntp-Posting-Host: pundit.cithep.caltech.edu
Reply-To: ernest@pundit.cithep.caltech.edu (Ernest Prabhakar)
Organization: California Institute of Technology, Pasadena
References: <1992Sep12.140413.744@stefki.toppoint.de>
Date: Sat, 12 Sep 1992 19:01:12 GMT
Lines: 37