FindDetails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FindDetails

Ian Bartholomew-21
Not sure if this is a bug or not.  The constructor method
FindDetails>>newPattern: takes aString as an argument.  However when it
initializes a new instance it has ...

ifFalse:
        [pattern := aString asSymbol.
        mode := #text].

... converting the String to a Symbol.  This is slightly confusing if
you were wanting to use the FindDetails to search for a String, as the
argument would seem to suggest.

It's easy enough to work round though, just use #new instead.

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.