edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: edbrowse-dev@edbrowse.org
Subject: possible root cause in gebcn for a recaptcha issue
Date: Wed, 20 Oct 2021 08:59:06 -0400	[thread overview]
Message-ID: <20210920085906.eklhad@comcast.net> (raw)
In-Reply-To: <cf1f203c-d7c6-45df-a36d-db16ffe3f7ad@www.fastmail.com>

> Could this be done with a getter/setter concept?

Not directly.
getter is on the property of an object, not a single variable.
foo.bar invokes a getter every time you reference it, but if you just say
x = blah
x is no longer a getter, it might be the result of a getter but it is what it is.

Indirectly, imagine x being an object with getters on the object, lots of them.
Like all the array methods, they first populate x, according to its original call,
then invoke the array method.
That's fine but what about the simple
x[3]
Am I supppose to put a getter on 3, to repopulate the list and make sure I'm returning item 3?
Should I do that for every possible integer?
That's not practical!
So as I say, I don't know how to do it.

Karl Dahlke


  reply	other threads:[~2021-10-20 12:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20 10:31 Kevin Carhart
2021-10-20 11:33 ` Karl Dahlke
2021-10-20 12:31   ` Kevin Carhart
2021-10-20 12:59     ` Karl Dahlke [this message]
2021-10-20 12:00 ` root element Karl Dahlke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210920085906.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=edbrowse-dev@edbrowse.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).