... Discussions about SUBSTITUTE went along the lines that SUBSTITUTE leaves strings alone if it does not find a macro to replace. Not sure if we nailed that...
923
Gerry
yipperoo
Aug 1, 2012 7:20 pm
... That sounds reasonable to me. In this case the reference implementation needs to be fixed as it will convert abc%foo to abc%foo% if foo is not a...
924
Stephen Pelc
sfprem
Aug 2, 2012 2:44 pm
... No. The second paragraph says "When a substitution name, surrounded by `%´ (ASCII $25) delimiters is encountered ..." In your example foo is not...
925
BruceMcF
brucemcf...
Aug 2, 2012 3:54 pm
From: Stephen Pelc <stephen@...>, Thu, Aug 2, 2012 10:44 am: ... Fix the reference implementation to match the specification. This is an issue that...
926
Anton Ertl
anton@...
Aug 2, 2012 4:42 pm
This is actually a poll about how widely the proposal is implemented and how popular it is among the programmers. It is called a CfV (call-for-votes) because...
927
Hans Bezemer
hansoft@...
Aug 2, 2012 4:47 pm
On Thursday 02 August 2012, Anton Ertl wrote: Hi all! It should come as no surprise I support this CfV. Hans Bezemer ... -- Absolutely no trees were killed to...
928
Gerry
yipperoo
Aug 2, 2012 9:05 pm
... I don't think it's a major issue, just that there's a hole in the spec. and errors in the reference implementation. I'm happy with the idea of passing the...
929
BruceMcF
brucemcf...
Aug 3, 2012 4:50 pm
... spec. and errors in the reference ... unchanged as long as the ... raised in my first post are ... There is no hole in the spec for a single "%". The spec...
930
Stephen Pelc
sfprem
Aug 3, 2012 6:51 pm
To resolve the SUBSTITUTE issue, I propose that after the text: "When a substitution name, surrounded by `%´ (ASCII $25) delimiters is encountered by...
931
Gerry
yipperoo
Aug 3, 2012 10:23 pm
... Looks OK to me, assuming the reference implementation works (I haven't tried it) Gerry...
932
Gerry
yipperoo
Aug 3, 2012 11:38 pm
... Well any implementation of SUBSTITUTE clearly has to scan for and process % characters and so has to be able to handle a single % or an odd number of %...
933
BruceMcF
brucemcf...
Aug 4, 2012 2:03 am
... "strict" ... should be surrounded ... In that example, %/lib/ is not a macro name, its literal text. Only the "string-util" is a macro name. According to...
934
Gerry
yipperoo
Aug 4, 2012 7:23 am
... So you would expect the output to be: %lib/<string-utils-string> If so I think the intention of the spec is that you should use %%lib/%string-utils% as the...
935
Anton Ertl
anton@...
Aug 4, 2012 11:33 am
... The input string always contains as many delimiters as were passed in. What do you really mean? I don't think that the pairing of delimiters is clear from...
936
BruceMcF
brucemcf...
Aug 4, 2012 10:30 pm
... If neither B nor D is a valid substitution name, and C is, then %C% is a substitution name surrounded by % characters that should be encountered by...
937
BruceMcF
brucemcf...
Aug 4, 2012 11:16 pm
Gerry <yipperoo@...>, Sat, Aug 4, 2012 3:23 am ... non-recursive." So it does. I missed that. ... However, the specification *is* that...
938
Mitch Bradley
wmb@...
Aug 4, 2012 11:16 pm
I sincerely hope that we don't end up with context-dependent parsing. That way lies madness. If the parser has to consult the current list of substitution...
939
mark wills
markrobertwills
Aug 5, 2012 9:03 am
Agree 100% Kiss principle should apply here as it applies to Forth in general....
940
Anton Ertl
anton@...
Aug 5, 2012 10:59 am
... That's a good point. I think that the idea of leaving unrecognized stuff alone comes from the usage of SUBSTITUTE in OPEN-FILE INCLUDE etc. that Stephen...
941
Bernd Paysan
berndpaysan
Aug 5, 2012 12:05 pm
... Cases like this clearly show that the deliminter was the wrong choice. It was inspired by MS-DOS, and we all know, MS-DOS is where madness lies ;-). Even...
942
Stephen Pelc
sfprem
Aug 5, 2012 5:27 pm
... Options a) b) c) in the current forth11-1.pdf text are adequate if we add d) Parsing of the input string resumes after the trailing delimiter. d) specifies...
943
Stephen Pelc
sfprem
Aug 5, 2012 5:32 pm
To ease reading of the various proposals, here is my proposal for the normative part of SUBSTITUTE. ======================================== 17.6.2. SUBSTITUTE...
944
Stephen Pelc
sfprem
Aug 5, 2012 6:17 pm
Anton said ... As a group, we voted for c) in the normative specification of SUBSTITUTE in forth11-1.pdf. The corner cases to be fixed come from the inadequate...
945
BruceMcF
brucemcf...
Aug 6, 2012 10:56 am
... That does eliminate the ambiguity in the specification as currently written....
946
Gerry
yipperoo
Aug 6, 2012 8:32 pm
... I think this ought to be reworded slightly since, in cases a) and c) the '%'s do not enclose a 'substitution name'. I suggest replacing it with: "When a...
947
Mark
markrobertwills
Aug 7, 2012 3:07 pm
3.2.7 Obsolescent Environmental Queries This standard designates the practice of using *ENVIRONMENT?* to inquire whether a *given* word set is present as...
948
Mark
markrobertwills
Aug 7, 2012 3:13 pm
3.2.8 advocates using ENVIROMENT? to query if an extension is installed. However, paragraph 3.2.7 implies that ENVIRONMENT? is to become obsolete: "This...
949
Anton Ertl
anton@...
Aug 7, 2012 3:13 pm
... Why do you think so? The text talks about querying for wordsets, and the table lists these queries. Querying for, say, ADDRESS-UNIT-BITS or MAX-N is not...
950
Mark
markrobertwills
Aug 7, 2012 3:18 pm
Table 3.7: Forth 200x Extensions appears to be in the wrong place. It appears midway through the text of paragraph 3.3, which concerns the Forth dictionary and...
951
Mark
markrobertwills
Aug 7, 2012 3:35 pm
"Some system-provided variables, such as STATE, are restricted to read-only access." I consider the above statement to be erroneous and/or misleading. Whilst I...