RE: Unit validation in spreadsheets
- From: "Paul A. Steckler" <steck stecksoft com>
- To: "'Uri David Akavia'" <uridavid netvision net il>, "'Jody Goldberg'" <jody gnome org>
- Cc: "'Gnumeric Mailing list'" <gnumeric-list gnome org>
- Subject: RE: Unit validation in spreadsheets
- Date: Thu, 18 Mar 2004 06:29:59 -0800
Does this transformer/validator have to be created per
function (for all functions?).
Yes.
Isn't there a more minimalist
approach available - for example, adding and subtracting need
to take the same units, whatever they are. Multiplication and
division can take any unit. Other functions might not care
about units.
That's exactly what the transformers enforce.
So you specify the transformers for addition and
subtraction as
+ :: u,u -> u
- :: u,u -> u
That wasn't much work, right? :-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]