comp.lang.ada
 help / color / mirror / Atom feed
* Record comparision ?
@ 1998-06-04  0:00 Prateek S Fulzele
  1998-06-03  0:00 ` Mark Fisher
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Prateek S Fulzele @ 1998-06-04  0:00 UTC (permalink / raw)



Hi everybody!

Here I have some doubts regarding record comparisions done in ADA.

Read this code sample:

type REC_TYPE;
type REC_PTR_TYPE is access REC_TYPE;
type REC_TYPE is
     record
	INT1 : INTEGER;
        INT2 : INTEGER;
     end record;

-- now I declare two variables of REC_PTR_TYPE
REC_PTR1, REC_PTR2 : REC_PTR_TYPE;

-- then, assign some values to the record members of 
-- REC_PTR1, REC_PTR2.
....

-- now I say:
if REC_PTR1 < REC_PTR2 then
	-- do so and so ..
end if;

What is this signify ?
Does it mean that REC_PTR1.INT1 < REC_PTR2.INT1 or else ?

Please clarify.

Thanks in advance!

Prateek
-- 
-------------------------------------------------------------------
Prateek S Fulzele
Telecom Development Center,
Digital Equipment India Ltd, 
Bangalore
-------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-06-08  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-04  0:00 Record comparision ? Prateek S Fulzele
1998-06-03  0:00 ` Mark Fisher
1998-06-05  0:00 ` Niklas Holsti
1998-06-08  0:00 ` John English

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox