Pierre Johnson napsal(a):
> First, text messaging can be such a limiting medium.
>
Yes, it looks that there was a misunderstanding somewhere. I thought I
found where it was but I was probably wrong, so let's try again:
> Now, excuse me, but it's not me who needs "HTH" and a referral
> to the REBOL docs.
>
That is possible, let's have another look.
> Again, to review the flow of messaging [with notes added]:
>
> ---- from the first -----
> A recent exchange on the REBOL email list made me revisit
> Ladislav Mecir's article "Rebol Words and Contexts, alias
> Bindology" ++ note: see that word "revisit"? it implies i've
> read it at least twice ++
>
> [http://www.fm.vslib.cz/~ladislav/rebol/contexts.html]
>
> Mr.Mercir writes:
>
> "Two words are equal, if they have equal spelling, or if they
> are aliases ... This knowledge can be used to define a Rebol
> function which can tell us whether two words are aliases."
>
> His word and definitional:
>
> aliases?: func [
> {find out, if word1 and word2 are aliases}
> word1 [any-word!]
> word2 [any-word!]
> ] [
> found? all [
> equal? :word1 :word2
> not equal? spelling :word1 spelling :word2
> ]
> ]
>
> which depends upon:
>
> spelling: func [
> {return the spelling of a word}
> word [any-word!]
> ] [
> if word? :word [return mold word]
> if set-word? :word [return head remove back tail mold :word]
> next mold :word
> ]
>
> But is this truth?
>
>
> --- end from the first ---
>
> This isn't truth. Spelling has nothing to do with it!
>
>
As it seem to me, you are saying, that the sentence: "Two words are
equal, if they have equal spelling, or if they
are aliases." is incorrect. Correct me, please, if I didn't understand you
properly at this point.
> The correct test has its basis here and here alone:
>
> aliases?: debate [
> word1 [any-word!]
> word2 [any-word!]
> ][
> either (not same? word1 word2) and (equal? word1 word2) [
> true
> ][
> false
> ]
> ]
>
OK, let's try:
aliases-2?: func [
word1 [any-word!]
word2 [any-word!]
][
either (not same? word1 word2) and (equal? word1 word2) [
true
][
false
]
]
I would say that the above looks like your definition of the meaning of
the word 'ALIASES?, which differs from my definition above. As always,
no definition can be wrong, they are just different. Here is an example:
word1: 'a
word2: use [a] ['a]
aliases? word1 word2 ; == false
aliases-2? word1 word2 ; == true
> 1. Two words are aliases if and only if their definitionals
> ("values") are equal AND they point to the exact same (one and
> only one) definitional ("value") existing within REBOL
> controlled memory.
>
>
As I pointed out above, a different definition exists. I don't say your
definition is wrong (I don't think a definition *can* be wrong), but I
have got a good reason to keep my original definition - it takes into
account the symbolic nature of aliasing as mentioned by
http://www.rebol.com/docs/words/walias.html
> Again, Mr. Mecir, even if you would have wrote correctly in your
> "bindology" article, your concept of what is an alias in REBOL
> and how to detect it (your functional definitional) are both not
> truth, i.e., they're false, incorrect.
>
This is a point of distinction. What I am saying is, that your
definition of ALIASES? differs from mine. I am quite sure, that both my
as well as your definition cannot be incorrect, although one of them may
be more convenient than the other.
> -- what you should have wrote correctly (but would still be
> false)----------------------------------------------------
> What is necessary for two words to be *aliases*? Two words are
> *aliases* if they are equal *have the same symbols in the exact
> same sequence* and *don't have the same face-value spelling*.
>
This sheds some light into it for me. It looks, like you are saying,
that I didn't define the meaning of:
1) "two words are aliases"
2) "two words are equal"
in the article. You are right, I didn't define these, because I wanted
to use the same meaning that can be found in
http://www.rebol.com/docs/words/walias.html . I offered the ALIASES?
function as a formalization, but another interpretation is possible, as
you pointed out.
> The final point is I've remained cordial through this exchange
> and find your replies amusing in your complete missing what is
> clear as if defending a mistake is more important than the
> mistake itself.
>
>
Thanks for your feedback and sorry for any offense I might cause by
misunderstanding your proposal.
-L
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.