[BUG][FIX] TestCodeGenerator

Stephan Rudlof sr at evolgo.de
Mon Dec 27 16:44:19 UTC 1999


--------------7382F753A9C3479C5B95196B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Dear Squeakers,

attached change set removes a bug in TestCodeGenerator, which occured if
calling
	^true asOop: Boolean
in a TestInterpreterPlugin method.

Greetings,

Stephan

P.S.: In the original method there was also an in ST invisible
character, what was seen by the C compiler though and led to a compiler
error.

-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3
--------------7382F753A9C3479C5B95196B
Content-Type: text/plain; charset=us-ascii;
 name="Fix TestCodeGenerator.1.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Fix TestCodeGenerator.1.cs"


'From Squeak2.7alpha of 1 December 1999 [latest update: #1726] on 27 December 1999 at 5:38:18 pm'!

!TestCodeGenerator methodsFor: 'asOop:/asValue:' stamp: 'sr 12/27/1999 05:50'!
generateCoerceToBooleanObjectFrom: aNode on: aStream 
	aStream nextPutAll: '('.
	self emitCExpression: aNode on: aStream.
	aStream nextPutAll: '? interpreterProxy->trueObject() : interpreterProxy->falseObject())'! !



--------------7382F753A9C3479C5B95196B--





More information about the Squeak-dev mailing list