Deutsch English Français Italiano |
<vq7pps$21q9f$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: sjack@dontemail.me (sjack) Newsgroups: comp.lang.forth Subject: Re: Fetch string from comment Date: Tue, 4 Mar 2025 21:02:52 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: <vq7pps$21q9f$2@dont-email.me> References: <vq4rmt$1dv1v$1@dont-email.me> <eaf8e4d9ac9957e6b411400e1490a5aa17fb90d1@i2pn2.org> Injection-Date: Tue, 04 Mar 2025 22:02:53 +0100 (CET) Injection-Info: dont-email.me; posting-host="5f928eca5175b059d9c171d5e8181a0a"; logging-data="2156847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wFZCsibqwBGQ/pBm2YJlB" User-Agent: tin/2.6.4-20240224 ("Banff") (Linux/6.8.0-54-generic (x86_64)) Cancel-Lock: sha1:sRdxRvF/hmGc6idSy6UZb8vVD5Y= Bytes: 2214 dxf <dxforth@gmail.com> wrote: > > Not understanding where it fits in. Is this meant to be in lieu of > ." ," S" etc ? > It could be if you were so incline. I'm not suggesting you should but showing something possible. The case for enhanced (nested) comment: Traditionally the first line of an SCR is a comment seen by INDEX : ( FOO BAR BAT ) Traditionally certain words are inclosed in parentheses, i.e. (.") . I would like to put such words in the comment seen by INDEX : ( FOO (PLUGH) BAR BAT ) Hence to do so the simple comment is enhanced to allow this. Using enhanced comment for string operations: If you have it then use it if it suits you. The enhanced comment is more robust than the existing string operators that you show in that any mix of printable characters can be contained in the comment and string operators that base on it. No breaking up text nor escaping characters needed (by the Forth): ..( The function("bar") char ) emit .( is to be used) \ standard, bah ..( The function("bar") is to be used) \ enhanced, ok .." Jack said " char " emit ." boo" char " emit . \ standard, bah ..( Jack said "boo") \ enhanced, ok @( echo -e "Hello World\!") /sys \ enhanced, ok -- me