tfrancis@wpi.wpi.edu (Krishan M Nainani) (07/05/89)
Hi, In converting some C code to Ada I came across a difficulty. In C, I pass the address of a structure (any structure) to a routine that doesn't care what the structure is. The structure is defined in this higher-level program which contains the procedure call. For example : struct stype { int a,b,c; float d,e,f; } a_struct; x = func_name(&a_struct); /* BTW, in "func_name" I store the structure contents in bytes by casting (char *). */ In designing the low-level routine (in which this function is encoded), I was wondering if I could pass the address of a structure as I do above in C. If not, then I would have to use a generic package with a private parameter. ****************************************************************** Also, thanks to everyone who sent me replied to my last mail message regarding questions on C -> Ada. ****************************************************************** Krishan Nainani. reply-to: tfrancis@wpi.wpi.edu ------------------------------------------------------------