Received: from ATHENA-AS-WELL.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA04740; Thu, 4 Feb 93 11:47:28 EST
Received: from CECI.MIT.EDU by Athena.MIT.EDU with SMTP
	id AA08402; Thu, 4 Feb 93 11:47:25 EST
Message-Id: <9302041647.AA08402@Athena.MIT.EDU>
Received: from ITHAKE.MIT.EDU by ceci.mit.edu id AA15717g; Thu, 4 Feb 93 11:47:33 EST
To: aybee@Athena.MIT.EDU
Cc: jud@ceci.mit.edu
Subject: Hello, world example
Date: Thu, 04 Feb 93 11:50:53 -0500
From: Judson Harward <jud@ceci.mit.edu>


Here is the Hello, World example with the new form of the Unique.
I only see one drawback.  The name of the instances defined must enter scope
as soon as the associated curly bracket opens although the identifier does not
appear until the end.  Look at how the button callback has to refer to myApp.

If this is to ugly we can revert to the old scheme, but we ought to
go back and consider the multiple inheritance issue.

Class : APnormal
{
	Class : MLtop
	{
		XFbutton hello
		{
			label := \`Hello, World\';
			callback := { { `Exit }, &myApp};
		};
	} myShell;
} myApp;

						Jud
