Hi all,
Formerly the definition protocol would be defined on class/generic pairs,
{ array length } see
And this pair would stand for the method defined there. Methods
themselves had no literal syntax and would print out in a way that
doesn't parse again:
array=>length
This made things inconsistent and the code for handling the definition
protocol on such pairs was needlessy repetitive. Tools such as the
disassembler, annotations and others all had to implement special
logic to handle this case.
Now there's a new literal syntax to parallel \ which pushes a method
object on the stack, and the generic/class pair method-specs are no
longer valid. So now you can do
M\ array length see
All words that work on words, also work on methods. Examples are edit,
disassemble, watch, breakpoint, see, optimized., and so on.
I realize that the syntax looks a bit funny, but it is not likely to
show up in a program, it is only for interactive use, and but it
really makes things simpler and more logical.
Slava
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk