comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: tasks as part of record
Date: Sun, 05 Oct 2014 09:36:04 +0200
Date: 2014-10-05T09:36:04+02:00	[thread overview]
Message-ID: <87a95bc6jf.fsf@adaheads.sparre-andersen.dk> (raw)
In-Reply-To: 7f7b41ac-01ee-4c53-a201-85891e3eef0a@googlegroups.com

Stribor40 <ikamzic@gmail.com> writes:

> ok how would task now access "Student_Number" component of student
> record of which is already part. For example how would we inside entry
> get a hold of Student_Number component...for example here...

One option would be to make "Student_Number" a variable in the task,
instead of a field in the record.

Another, less safe, option would be to let the task have a discriminant
referencing the containing record.

Greetings,

Jacob
-- 
"Being an absolute ruler today was not as simple as people
 thought.  At least, it was not simple if your ambitions
 included being an absolute ruler tomorrow."

  reply	other threads:[~2014-10-05  7:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 13:11 tasks as part of record Stribor40
2014-10-04 13:33 ` Simon Wright
2014-10-04 22:12 ` Stribor40
2014-10-05  7:36   ` Jacob Sparre Andersen [this message]
2014-10-05  8:11 ` Niklas Holsti
2014-10-06  3:47   ` Stribor40
2014-10-06  5:43     ` Jeffrey Carter
2014-10-06  7:18     ` Niklas Holsti
2014-10-06  8:00       ` Dmitry A. Kazakov
2014-10-06 11:40         ` G.B.
2014-10-06  8:06       ` Simon Wright
2014-10-06  8:24     ` Simon Wright
2014-10-12 22:33       ` compguy45
2014-10-13  7:32         ` Simon Wright
2014-10-13 14:45           ` compguy45
2014-10-13 15:33             ` Shark8
2014-10-18 18:21           ` Stephen Leake
replies disabled

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