[Seaside] Re: Possible Pharo1.0 problem. No error indication while parsing and no debugging triigered on error.

Tobias Pape Das.Linux at gmx.de
Thu May 13 17:35:13 UTC 2010


Am 2010-05-13 um 18:39 schrieb Fritz Schenk:

> Hernán Morales Durand <hernan.morales <at> gmail.com> writes:
> 
> 'Parser error?"
> 
>> That's because the parser takes the resulting object of sending
>> 
>> '++' html space
>> 
>> as parameter for the #with:
> 
> Please explain further why neither eCompletion or the parser knows that 'html
> space' does not belong after the 'html anchor' clause.

because 

	html anchor
		callback: [ self increase];
		with: '++' 
	html space.

is as valid Smalltalk as

	html anchor
		callback: [ self increase];
		with: '++' html space.

is. Because of the precedence of _unary_ messages over keyword messages,
this is equivalent to

	html anchor
		callback: [ self increase];
		with: ('++' html space).

hence, neither the parser nor eCompletion can know
how valid Smalltalk would be _semantically_ incorrect.
Its neither the parsers' not eCompletions fault, that
the ByteString does not understand #html ;)

So Long,
	-Tobias



More information about the seaside mailing list