HP3000-L Archives

October 1997, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"John D. Alleyn-Day" <[log in to unmask]>
Reply To:
[log in to unmask][log in to unmask]
> Subject: pkzip
>
> Dear Lister's,
>
> Is there any HP3000 'zip type' utility that is compatible with
> pkzip
> on the PC?
>
> Please respond to: [log in to unmask] or the list
>
> Thank you in advance,
> Michele Conant
> [log in to unmask]
> 916)985-580836_31Oct199706:03:[log in to unmask]
Date:
Wed, 29 Oct 1997 22:35:58 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
"Anderson, Michael" <[log in to unmask]> wrote:

>I was troubled with this same problem for at least two hours until I
>finally figured out that I needed to put the "&" ampersand in front of
>the parameters in question. I'm not sure what the ampersand does for the
>"C" compiler, I know it doesn't correspond to the USING and GIVING in
>COBOL, it's closer to the BY REFERENCE or BY VALUE. Any further
>explanations will be humbly accepted.

The ampersand tells C that you want the address of the variable.  In COBOL
all the variables are passed by reference anyway, so no ampersand is
needed.  HP has a special format using "\"s to indicate that you are
passing a variable by value (only used, of course, when calling a system
intrinsic or non-COBOL program).  The compiler knows whether a variable has
to be passed by value or by reference if you use "CALL INTRINSIC", so you
can usually just miss out the "\"s.  C is much less forgiving, but allows
you to do things that would be very difficult to do in COBOL.  Yer pays yer
money and yer takes yer choice.

John D. Alleyn-Day
Alleyn-Day International
408-286-6421   408-286-6474 (Fax)
[log in to unmask]       http://www.Alleyn-Day.com

ATOM RSS1 RSS2