[squeak-smalltalk/squeak-object-memory] Regression in Compiler | Three consecutive empty statements in a block (Issue #168)

Marcel Taeumel via Squeak-dev <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <squeak-smalltalk/squeak-object-memory/issues/[email protected]>
marceltaeumel created an issue (squeak-smalltalk/squeak-object-memory#168)

In blocks, we cannot have **three consecutive** empty statements with only a comment each anymore:

```Smalltalk
[ "1" . ] value.  "-> nil"
[ "1" . "2" . ] value.  "-> nil"
[ "1" . "2" . "3" . ] value.  "-> NotImplemented on CommentNode"
```

There is a regression in

`BlockNode >> sizeCodeForEvaluatedFullClosureValue:`

Works in Squeak 6.0. Works in regular methods.

We probably need to extend the other exit condition:

```Smalltalk
((statements last isJust: NodeNil) and: [self returns not]) 
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/squeak-smalltalk/squeak-object-memory/issues/168
You are receiving this because you are subscribed to this thread.

Message ID: <squeak-smalltalk/squeak-object-memory/issues/[email protected]>

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.