On 2020-06-08 15:02, Peter Pentchev wrote:
On Mon, Jun 08, 2020 at 02:57:58PM -0700, ToddAndMargo via perl6-users wrote:
On 2020-06-08 14:54, Peter Pentchev wrote:
On Mon, Jun 08, 2020 at 02:48:48PM -0700, ToddAndMargo via perl6-users wrote:
On 2020-06-08 13:55, Richard Hainsworth wrote:
[snip]
The opening bracket for class Informing is on (or about) line 10 and the
closing in at about line 630, with a comment 'end of Informing class'

Richard

Hi Richard,

Ah Ha!  and 626's bracket is not blue.  Geany
does that some times.


9:      class Informing {
626:    } # end of Informing class

Okay now.  I missed this because of line 8:

8: =comment code for the inform dialog box
9:   class Informing {
          has $!app;
          has Bool $!reinit = True;
          has $!inf-lable;
          has $!box;
          has $!btn-box;
          has $!deleted_supply;
          has $!title;
          has $!position;
          has $!timer-lable;
          has @!buttons;
          has @!entries;
          has %.data = {};
          has $.response;
          has Supply $!sup = self.g-timeout(1000);
          has Tap $!tap;
          has Int $!timer = 10;
          has Bool $!show-countdown = True;
27:     has Str $.text is rw = "Say <span
color=\"green\">something</span><span weight=\"bold\" color=\"red\">
beautiful</span>";
28: <blank line>

Everything from line 8 to line 27 is a "comment".  The
comment does not terminate until the first blank line,
which is 28.

Seems to me the comment rules are being violated here.
The comment does not terminate until the first blank
line.

What am I missing, again.

:'(

OK, that is weird. I do not know why your editor is showing you that.
https://github.com/finanalyst/p6-inform/blob/master/lib/Informative.pm6
says that the "=comment" line is line 8, then there is a blank line 9,
and then there is a "class Informing {" on line 10.

G'luck,
Peter


Poop!!!  (Not my actual word and not an admission that
I cuss.)

Richard has a new one out, so I am going to get the new
one ASAP

Thank you.  I though I was going nuts.

Eh, well...
https://github.com/finanalyst/p6-inform/blame/master/lib/Informative.pm6
...says that this blank line has been there for the past four years,
actually longer than both the comment line above it and the current
state of the class line below it :)

Eye balling it shows it clearly there.


I'd start to wonder if it is possible that you deleted that line by
mistake. I *know* I've done that. I know I did it this week, and it's
only Monday :)

Not a chance the third or forth time at it.  It is a
clipboard issue.  The secondary clipboard is a little
weird in Fedora 32.

Hmm, I wonder about the primary clipboard.  No, screwed
up in the primary clipboard too.

It may have something to do with the web site:

<tr>
<td id="L8" class="blob-num js-line-number" data-line-number="8"></td> <td id="LC8" class="blob-code blob-code-inner js-file-line"><span class="pl-k">=</span><span class="pl-e">comment</span> <span class="pl-en">code for the inform dialog box</span> <span class="pl-c"></span></td>
      </tr>

      <tr>
<td id="L9" class="blob-num js-line-number" data-line-number="9"></td> <td id="LC9" class="blob-code blob-code-inner js-file-line"><span class="pl-c"></span></td>
      </tr>

      <tr>
<td id="L10" class="blob-num js-line-number" data-line-number="10"></td> <td id="LC10" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">class</span> <span class="pl-en">Informing</span> {</td>
      </tr>

Line 9 does seem a little weird.


Over on the fork and edit page, I get:

<div class="commit-create  position-relative ">
    <textarea
class="form-control file-editor-textarea js-blob-contents js-code-textarea "
      rows="35" name="value"
      data-filename="Informative.pm6"
      data-codemirror-mode="text/x-perl"
      data-allow-unchanged=""
      placeholder="Enter file contents here"
      aria-label="Enter file contents here"
      spellcheck="false"
      autofocus>
use NativeCall;
use nqp;
unit module Informative;
=comment
    The clever code is copied from GTK::Simple
    The Windows code in particular comes from GTK::Simple.

=comment code for the inform dialog box

    class Informing {
        has $!app;

A lot better coding!

Reply via email to