Oppolzer - Informatik / Blog


Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie

PL1-L - "Weiche" Übergänge bei Schnittstellenänderungen

Subject:

Re: GENERIC entry declaration with structure parameter

From:

Bernd Oppolzer <bernd.oppolzer@T-ONLINE.DE>

Reply-To:

PL1 (language) discussions <PL1-L@LISTSERV.DARTMOUTH.EDU>

Date:

2013.02.16 20:56:26


From: Bernd Oppolzer
Sent: Saturday, 16 February 2013 8:45 PM

> I don't know much about GENERIC, but to your original problem:

> I would suggest writing a new procedure with a new name, which supports the
> additional CHAR parameter, copying all the code from the old one.

> And then you replace the old procedure by a new one which simply calls
> the new procedure and specifies a default value for the new CHAR parameter.

P. has a family of three procedures, with one, two, and three arguments,
respectively.

The existing procedure supports one argument. Two new ones are to be written,
supporting two and three arguments, respectively.


Am 15.02.2013 14:17, schrieb P.H.:

>> Did you try "DEFINE STRUCTURE" and use the type name in the GENERIC
>> declaration?

> No. But I happy with
>
> dcl SetDSError GENERIC (
>            SetDSError0 when ( * ),
>            SetDSError1 when ( *, char ),
>            SetDSError2 when ( *, char, char )
>            );
>
> The compiler complains as expected when argument and parameter
> types/structures do not match.

Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie