comp.lang.ada
 help / color / mirror / Atom feed
From: peter@graffiti.UUCP (Peter da Silva)
Subject: Re: text_io problems
Date: Mon, 23-Sep-85 07:30:52 EDT	[thread overview]
Date: Mon Sep 23 07:30:52 1985
Message-ID: <229@graffiti.UUCP> (raw)
In-Reply-To: 8509172214.AA04519@UCB-VAX.ARPA

> I am not proposing any changes to the language to address this, since
> there are good reasons for the limitation.  Though well defined in the ARM,
> the IO packages are not really part of the language in the sense that they are
> packages like any other, not to be implemented by special features such as
> routines with variable numbers of parameters.  For a variety of good reasons,
> variable number of parameters are not permitted.

What is wrong with a well-defined varargs interface? It doesn't have to be
efficient: if you want efficient I/O you're going to be packing stuff into
buffers and feeding them out through direct writes. Maybe an array of structs
like so (ADA ref manual not here, so I'll do it in Pascal, yet another language
I'm no longer familiar with):

type arg: record
		case tag: integer in
			0: int: integer;
			1: flt: real;
			2: chr: character;
			3: str: string;
		end
	  end;

It would also be useful for symbol tables & the like.

  reply	other threads:[~1985-09-23 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1985-09-17 17:38 text_io problems Jerry Rudisin
1985-09-23 11:30 ` Peter da Silva [this message]
  -- strict thread matches above, loose matches on Subject: below --
1985-09-18  0:20 CHRIS
replies disabled

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