Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!lll-winken!unixhub!shelby!neon!pescadero.Stanford.EDU!philip From: philip@pescadero.Stanford.EDU (Philip Machanick) Newsgroups: comp.sys.mac.misc Subject: Re: NeXT Mach (was Re: UNIX is yuck (was Re: Next intro...) Message-ID: <1990Oct22.213553.20022@Neon.Stanford.EDU> Date: 22 Oct 90 21:35:53 GMT References: <1990Oct6.172357.18366@smsc.sony.com> <1990Oct8.091751.3053@csc.anu.oz.au> <4b5vB5e00UhBA=gi8V@andrew.cmu.edu> <1990Oct15.224912.26056@eng.umd.edu> <21288@well.sf.ca.us> Sender: news@Neon.Stanford.EDU (USENET News System) Reply-To: philip@pescadero.stanford.edu Organization: Computer Science Department, Stanford University Lines: 24 In article <21288@well.sf.ca.us>, loca@well.sf.ca.us (John Hoag) writes: |> > With Think C or MPW 2.02, it isn't hard at all. |> |> ...once you've written a few hundred lines of environment-handling code |> in preparation for printing "Hello World." The Mac may be a lot more difficult to program than it needs to be, but let's stick to the facts. I don't know about Think C or MPW, but this statement implies that there is no way of writing trivial programs on the Mac. In THINK Pascal, you can use ordinary ANSI-Pascal IO. Here's your "Hello World" program: program hello; begin showtext; writeln('hello world'); end. (you may want to add a readln to the end to stop the window disappearing until RETURN is typed). And you _do not_ have to write hundresd of lines to do the same in a dialog box. Of course, once you get into non-trivial programs, things aren't too pretty. -- Philip Machanick philip@pescadero.stanford.edu