[NEWBIE][Q] System Browser's method categories

Andrew C. Greenberg werdna at gate.net
Wed Dec 22 07:03:51 UTC 1999


--============_-1266276247==_============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"


As with yesterday's change set, I haven't been able to test this yet 
except for a simple test suite.  If Stephan could run it through its 
passes, I'd be obliged.

"Change Set:		CCodeGenerator2
Date:			21 December 1999
Author:			Andrew C. Greenberg

Improves compilation of #whileTrue, #whileFalse, #whileTrue: and 
#whileFalse: builtins.  CCodeGenerator (and hence, the named 
primitive sompilers) now generate loops of the following forms, as 
appropriate:

SMALLTALK EXEMPLAR			GENERATED CODE

[cond] whileTrue: [stmtList].		while(cond) do {stmtList}

[cond] whileFalse: [stmtList].		while(!(cond)) do {stmtList}

[stmtList. cond] 			do {stmtList} while(cond)
	whileTrue.
[stmtList. cond]
	whileTrue: []

[stmtList. cond]			do {stmtList} while(!(cond))
	whileFalse.
[stmtList. cond]
	whileFalse: []

[stmtListA. cond]			while(1) {
	whileTrue: [stmtListB]			stmtListA;
						if(!(cond)) break;
						stmtListB
					}


[stmtListA. cond]			while(1) {
	whileFalse: [stmtListB]			stmtListA;
						if(cond) break;
						stmtListB
					}

"
--============_-1266276247==_============
Content-Type: text/plain; name="CCodeGenerator2.3.cs"
 ; x-mac-type="65417070"
 ; x-mac-creator="43534F6D"
Content-Disposition: attachment; filename="CCodeGenerator2.3.cs"
Content-Transfer-Encoding: imap_stub

0,2576,2.2,9054,0,

--============_-1266276247==_============--





More information about the Squeak-dev mailing list