comp.lang.ada
 help / color / mirror / Atom feed
From: ametayer98@hotmail.com (annabelle)
Subject: Re: beginner ada generic fonction
Date: 23 Mar 2002 18:55:06 -0800
Date: 2002-03-24T02:55:06+00:00	[thread overview]
Message-ID: <8235efb6.0203231855.557e94cc@posting.google.com> (raw)
In-Reply-To: 3ESm8.101615$q2.10433@sccrnsc01

Thank you very much for your answer.

But I still dont get how I can make this function re-usable :

  	-------------------------------------------------------------------
  	function laCle(Mon_item : T_inscription) return t_code_Cours is
		
	begin
		Return Mon_item.Code_cours;
  	end lacle;
  	-------------------------------------------------------------------

I tried to cut'n paste the function to reuse it with another type of element :

  	-------------------------------------------------------------------
  	function laCle(Mon_item : T_Course) return t_code_Cours is
		
	begin
		Return Mon_item.Code_course;
  	end lacle;
  	-------------------------------------------------------------------

But it does not work...



  reply	other threads:[~2002-03-24  2:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-23  1:37 beginner ada generic fonction annabelle
2002-03-23  3:29 ` Steve Doiel
2002-03-24  2:55   ` annabelle [this message]
2002-03-24  3:10   ` annabelle
2002-03-24  3:51     ` Steve Doiel
2002-03-24 17:31       ` annabelle
2002-03-25  6:05         ` Simon Wright
2002-03-24 20:37       ` annabelle
replies disabled

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