[squeak-dev] Side effect of script _ -> :=

Bert Freudenberg bert at freudenbergs.de
Sat Aug 22 20:37:47 UTC 2009


On 22.08.2009, at 21:49, Alexander Lazarević wrote:

> Just a note that whatever script is used to transform _ into := in the
> trunk. It does not recognize comments as in
>
> analyseTempsWithin: scopeBlock "<BlockNode>"  rootNode: rootNode  
> "<MethodNode>"
> -       "N.B.  since assigment happens _after_ the value is evaluated
> the value is sent the message _first_."
> +       "N.B.  since assigment happens :=after:= the value is
> evaluated the value is sent the message :=first:=."
>       value analyseTempsWithin: scopeBlock rootNode: rootNode.
>       variable beingAssignedToAnalyseTempsWithin: scopeBlock  
> rootNode: rootNode


It's a dumb text replacement, that just checks no literal $_ was in  
the method. An actual parser-based replacement would have been nice,  
but nobody worked on it.

As for the example above, the author should not have used underscores  
but should actually have made the words bold or italic.

- Bert -





More information about the Squeak-dev mailing list