[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [bug] smalltalk-mode.el not good with old syntax
From: |
Jeronimo Pellegrini |
Subject: |
[Help-smalltalk] [bug] smalltalk-mode.el not good with old syntax |
Date: |
Tue, 04 Mar 2008 02:42:53 -0700 |
Issue status update for
http://smalltalk.gnu.org/node/179
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/179
Project: GNU Smalltalk
Version: <none>
Component: Base classes
Category: bug reports
Priority: normal
Assigned to: Unassigned
Reported by: jeronimo
Updated by: jeronimo
Status: active
Hello.
I have some files that I created using the old syntax of GNU Smalltalk.
With GNU Smalltalk 3.0.1, I can't easily edit those files anymore.
The new command, smalltalk-bang, doesn't seem to work with files using
the old syntax.
A silly example:
!Object methodsFor: 'stuff'!
"Newton method for swuare roots -- this is the iterating part."
newtonIterate: n | newValue |
newValue := 0.5 * (n + (self / n)).
( (n - newValue) abs < 0.00000001 )
ifTrue: [ ^newValue ]
ifFalse: [ "newValue printNl." ^self newtonIterate: newValue ]
!
"Newton method for square roots."
newton
(self < 0)
ifTrue: [ self error: 'Negative numbers have no square root!'
]
ifFalse: [ ^self newtonIterate: self ] !
If you try hitting ! several times, you will notice that
it will both produce the bang on the text and go,
sometimes to the end of the method, and sometimes somewhere inside a
string (if there is a ! inside the string).
Thank you,
J.
PS: I assigned to component base classes because there is no "Emacs
interactor" option...
- [Help-smalltalk] [bug] smalltalk-mode.el not good with old syntax,
Jeronimo Pellegrini <=
- Message not available
- Message not available
- [Help-smalltalk] Re: [bug] smalltalk-mode.el not good with old syntax, Paolo Bonzini, 2008/03/04
- Message not available
- [Help-smalltalk] Re: [bug] smalltalk-mode.el not good with old syntax, Paolo Bonzini, 2008/03/04
- Re: [Help-smalltalk] Re: [bug] smalltalk-mode.el not good with old syntax, Jeronimo Pellegrini, 2008/03/05
- Re: [Help-smalltalk] Re: [bug] smalltalk-mode.el not good with old syntax, Paolo Bonzini, 2008/03/05
- Re: [Help-smalltalk] Re: [bug] smalltalk-mode.el not good with old syntax, Jeronimo Pellegrini, 2008/03/05