[squeak-dev] breakpoint at primitiveAdd

Bert Freudenberg bert at freudenbergs.de
Fri Sep 25 15:13:07 UTC 2009


On 25.09.2009, at 15:37, Ang Beepeng wrote:

>
> Hi all.
>
> I run Squeak in debug mode. I put a breakpoint at function  
> 'primitiveAdd'.
> By right when I print '3+4' in a workspace, Squeak will break. But,
> strangely, nothing happen, and the result returned. When I debug  
> '3+4', the
> breakpoint triggered.
>
> What is the problem?

SmallInteger addition is done in byte codes, not primitives, for speed.

- Bert -





More information about the Squeak-dev mailing list