Re: gparamspecs.c param_double_validate() doesn't support NaN/Inf?
- From: Andrew Paprocki <andrew ishiboo com>
- To: "Brian J. Tarricone" <bjt23 cornell edu>
- Cc: gtk-devel-list gnome org
- Subject: Re: gparamspecs.c param_double_validate() doesn't support NaN/Inf?
- Date: Sat, 10 Jan 2009 12:17:38 -0500
On Sat, Jan 10, 2009 at 7:06 AM, Brian J. Tarricone <bjt23 cornell edu> wrote:
> But I don't disagree that NaN or +/- inf should be allowed, assuming
> a restriction such as the above isn't in place for the particular
> instance of GParamSpecDouble.
This brings up an interesting question.. if the GParamSpecDouble
minimum/maximum are -G_MAXDOUBLE/G_MAXDOUBLE, should NaN/Inf be
allowed, otherwise not? That would allow a patch to add the
functionality without adding new fields to the GParamSpecDouble
structure. What does everyone think? Explicit, modifying the
structure, or implicit based upon the existing values?
-Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]