[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
struct variable definition (in var.h)
From: |
John Darrington |
Subject: |
struct variable definition (in var.h) |
Date: |
Mon, 8 Nov 2004 15:06:59 +0800 |
User-agent: |
Mutt/1.3.28i |
So I'm onto the EXAMINE command, which means that I'm going to have to
look again at percentiles and calculation of ranks. Much of this was
done before in the FREQUENCIES command. However it needs to be
abstracted somewhat if it's going to be reuseable.
Currently I'm not too impressed with the system we've been using for
storing per procedure info which has a rather cumbersome general
purpose storage area in the definition of the variable type:
struct variable
{
.
.
.
/* Per-procedure info. */
void *aux;
struct get_proc get;
union
{
struct crosstab_proc crs;
struct frequencies_proc frq;
struct list_proc lst;
struct means_proc mns;
struct matrix_data_proc mxd;
struct match_files_proc mtf;
struct group_proc grp_data;
}
p;
};
I think there's a lot of problems with this approach. To name some:
1. Doesn't promote reuse between procedures.
2. Makes no provision for factored variables.
3. There'll end up being a lot of members to that union
4. Makes var.h dependent upon almost every procedure definition.
Does anyone object if I rework it?
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.
pgpwhumb1OgMN.pgp
Description: PGP signature
- struct variable definition (in var.h),
John Darrington <=
- Re: struct variable definition (in var.h), Ben Pfaff, 2004/11/08
- Re: struct variable definition (in var.h), Ben Pfaff, 2004/11/09
- Re: struct variable definition (in var.h), John Darrington, 2004/11/09
- Re: struct variable definition (in var.h), Ben Pfaff, 2004/11/09
- Re: struct variable definition (in var.h), Ben Pfaff, 2004/11/10