[squeak-dev] [Q] Why we can't use - before a number?

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Wed Mar 3 13:23:16 UTC 2010


To my previous question

mixedWith: aSoundBuffer
| start end |
start := - 32767 . ³you can¹t use it , Squeak is not FORTRAN , you should
use 0 ­ aninteger instead ³
end := 32767.
    ^ ((aSoundBuffer size >= self size) ifTrue: [aSoundBuffer] ifFalse:
[self])
        collectWithIndex: [:s :i |
            (s + (self at: i ifAbsent: [0])) forceIn: (Interval from: start
to:  end)].

Edgar


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100303/d85e66ef/attachment.htm


More information about the Squeak-dev mailing list