Page 2 of 4

Re: TextMapper Scanner & SETS

Posted: Wed Oct 07, 2015 8:57 am
by Robert
Zinn wrote:It is not a bug - it is a feature.
(In this quote I have changed a word to "feature" as I think this is what you meant!)

I guess we will never know if it is a deliberate feature.

I think the current situation is unsatisfactory. If it is a feature we should update the documentation to describe it. If it is a bug we should remove it.

Personally I much prefer to regard it as a bug.

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 6:30 am
by Ivan Denisov
I think, that we should vote about this. Because we definitely have two opinions.
1. {1, 2 3} should abort compilation with error mark
2. {1, 2 3} should not abort compilation

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 6:32 am
by Ivan Denisov
Robert, does the ready solution exist already?

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 7:59 am
by Josef Templ
In my opinion, this topic is not a real problem and does not need a change and therefore does not need a vote.
We have enough to do to catch up with the backlog of changes in the CPC 1.7 change list.

Please keep focused on real bugs and improvements.

- Josef

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 11:30 am
by Robert
Ivan Denisov wrote:I think, that we should vote about this. Because we definitely have two opinions.
1. {1, 2 3} should abort compilation with error mark
2. {1, 2 3} should not abort compilation
It is not a problem with compilation; the compiler does reject invalid sets. It is when you use a Scanner directly that this issue occurs.
Robert, does the ready solution exist already?
My suggestion is in my post dated 4-Oct. You need to change the name from Sett to Set.

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 11:37 am
by Josef Templ
I know that it is not in the compiler but in the text scanner.
See my previous posting http://forum.blackboxframework.org/view ... =295#p2534.
There is no need for a change. Just leave it as it is unless there is a problem.
Having a more tolerant syntax here is not a problem but could actually be considered a feature.

- Josef

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 12:10 pm
by Ivan Denisov
Josef, I the solution exist, we do not need to suspend the issue. So I will prepare the branch for voting on this issue.
If you think, that it is not important issue, you can vote No.

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 12:19 pm
by Josef Templ
If we create an issue for every little question or personal preference a center member has we waste so much time and energy that we will never come to a release. This should be understood by all center members.

Re: TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 12:59 pm
by Robert
Josef Templ wrote:If we create an issue for every little question or personal preference a center member has we waste so much time and ...
This wasted my time in the past as I thought that I could use the BlackBox code as a model for a private routine without realising that the Scanner code did not do what I expected - ie recognise correctly formatted SETs. I now have the routine I need, so it is no longer a problem for me. The reason for considering correcting the existing code is to avoid wasting other people's time.
The correction could consist of modifying the code to comply with the Docu, or modifying the Docu to explain the syntax that interpretSets does recognize.

I prefer the first option.

Re: issue-#95 TextMapper Scanner & SETS

Posted: Fri Jan 15, 2016 2:55 pm
by Ivan Denisov
Please, take a look at the changes.
http://redmine.blackboxframework.org/pr ... 22ba0cbbbc

I changed the LOOP statement to WHILE. Because LOOP is rarely used in BlackBox and also it is excluded from new revision of Oberon. It is better not use it in all Center fixes if it is possible.

The test version:
http://blackboxframework.org/unstable/i ... a1.374.zip