[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "internal" variables?
From: |
Ben Pfaff |
Subject: |
Re: "internal" variables? |
Date: |
Thu, 11 Sep 2008 09:40:10 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
John Darrington <address@hidden> writes:
> On Wed, Sep 10, 2008 at 09:13:07PM -0700, Ben Pfaff wrote:
> John Darrington <address@hidden> writes:
>
> > I wondered if allowing a special class of (struct variable) which does
> > not have any associated dictionary would be a sensible idea?
>
> Already exists. Just call var_create().
>
> > These kind of variables would be very sparse, containing only a
> > width, and a case_idx.
>
> The case_idx isn't really there conceptually, because currently
> it's thought of as part of the dictionary and just stored in the
> variable for convenience. But you can put it there with
> var_set_vardict(); despite the stern warning in vardict.h that
> "This header file should only be included by variable.c and
> dictionary.c," there is nothing actually enforcing it (if I
> recall correctly).
>
> You're right. Perhaps then we can put a convenience function in
> data/variables.h to wrap the most common usage?
OK. Do you want to propose it? You are more familiar with your
proposed use case than I am.
--
Ben Pfaff
http://benpfaff.org