pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dict_var_resized


From: Ben Pfaff
Subject: Re: dict_var_resized
Date: Fri, 01 May 2009 20:23:08 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

John Darrington <address@hidden> writes:

> dict_var_resized exists for one purpose only -  it informs the GUI
> that the size of a variable has changed.  That way, the var sheet 
> always displays the correct information, even if a variable changes
> due to some low level operation (eg: running syntax).

Right.  So if the variable doesn't belong to a dictionary, then
there's nothing to do.

> Solution 2:  If that's not possible, then I think it'll be acceptable
>     to simply test for d == NULL inside dict_var_resized and do
>     nothing in that situation.
>
> I'd prefer solution 1 if at all possible.

I don't understand why solution 1 is preferable.  Why isn't this
just a bug in dict_var_resized?  I note that, for example,
dict_var_changed does test for the null-dictionary case.
-- 
"In this world that Hugh Heffner had made,
 he alone seemed forever bunnyless."
--John D. MacDonald




reply via email to

[Prev in Thread] Current Thread [Next in Thread]