zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <psprint2@fastmail.com>
To: zsh-workers@zsh.org
Subject: Re: Gdbm module
Date: Thu, 23 Feb 2017 00:19:18 -0800	[thread overview]
Message-ID: <1487837958.4071562.890190056.5522DC79@webmail.messagingengine.com> (raw)
In-Reply-To: <170222074415.ZM18336@torch.brasslantern.com>

On Wed, Feb 22, 2017, at 07:44 AM, Bart Schaefer wrote:
> We are somewhat limited by lacking
> a mechanism for nested hashrefs, but consider the way "typeset -T" can
> specify the format of array <-> scalar joining.

I plan to write a module that will just blindly put PM_HASH instead of
PM_HASHELEM into PM_HASH. See what will happen. The code handling value
retrieval is sophisticated, maybe even blind to structure, just follows
its PM_HASH etc. detection, I'm counting on that.

BTW. Retrieving from PM_SCALAR means double getter call. Saw that when
working on db_gdbm/zgdbm. I'm sure there's no error on my side, I've
even rolled out complete debugger walk. This could be an optimization,
to change/fix that.

-- 
  Sebastian Gniazdowski
  psprint2@fastmail.com


      reply	other threads:[~2017-02-23  8:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKc7PVAz=zfrFapifcJudnMqgscNudC5S4S6ym7AWfFFORoROQ@mail.gmail.com>
2017-02-21 17:25 ` Bart Schaefer
2017-02-21 19:52   ` Sebastian Gniazdowski
2017-02-22  4:41     ` Bart Schaefer
2017-02-22  9:10       ` Sebastian Gniazdowski
2017-02-22 15:44         ` Bart Schaefer
2017-02-23  8:19           ` Sebastian Gniazdowski [this message]

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=1487837958.4071562.890190056.5522DC79@webmail.messagingengine.com \
    --to=psprint2@fastmail.com \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).