Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!gitpyr!dsking From: dsking@pyr.gatech.EDU ( David King) Newsgroups: comp.sys.amiga.tech Subject: (a whole bunch of initialization stuff) Re: Can you nest subroutines in C? Message-ID: <8698@pyr.gatech.EDU> Date: 7 Jul 89 17:22:47 GMT References: <18215@usc.edu> <7223@cbmvax.UUCP> Reply-To: dsking@pyr.UUCP ( David King) Organization: Georgia Institute of Technology Lines: 47 In article <7223@cbmvax.UUCP> daveh@cbmvax.UUCP (Dave Haynie) writes: >There are certainly some very important requirements for static data allocations >that can't be handled by clever constructor functions. For example, you may >want to include lots of image data, which would be real ugly to build one word >at a time in a constructor function, and hard to change once entered that way. >Though in reality, something like that doesn't really belong as a C static >declaration, either, since while C makes it prettier, it doesn't make it that >much prettier. What I'd really want is a conversion utility that'd build me >an image object file directly from the IFF file. That gets added to the >makefile, and changes in the image then happen as soon as I exit DPAINT, >not some minutes or hours later after the image is automatically or manually >converted to source code of some kind. > >So some initializations are going to be between these extremes, and much more >ugly in M2 than C, though I don't think the number of these is as great as >everyone currently writing C with lots of initializations seems to think. Atleast two of the M2 development systems have a utility like you mention. M2Sprint (the one I own) can directly link as many images as you possibly use into the executable. The mer can refer to them as image structures directly. Its a nice facility. I've been thinking of doing a PowerWindows type program (with a better UI) that directly outputed object code (referenced in a similiar manner to Matt's config parameters). The code run in the application would automatically deal with fontsizes, full WorkBench screen windows, and other dynamic data. I'd much rather see an IFF load format but it looks like that won't be happening. >Well, I always wonder whenever anyone tries to convince me that the lack of >something is a feature. Lack of pre-initialization is not feature in my book. Its like cutting 3 legs off an ant (its just that M2Sprint produced some artificial legs). >-- >Dave Haynie Commodore-Amiga (Systems Engineering) "The Crew That Never Rests" > {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: D-DAVE H BIX: hazy > Be careful what you wish for -- you just might get it -- David King - FROM Disclaimers IMPORT TiredGradStudent; Georgia Insitute of Technology, Atlanta Georgia, 30332 uucp: ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!dsking ARPA: dsking@pyr.gatech.edu