For Programmers: Free Programming Magazines  


Home > Archive > Fortran > August 2005 > PL/I COPY, PACK









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PL/I COPY, PACK
robin

2005-08-24, 3:57 am

|"Tim Challenger" <tim.challenger@aon.at> wrote in message
|news:1124709069. 7d47947a0368832b424783e50fa2110e@teranew
s...
|> On Mon, 22 Aug 2005 09:16:00 GMT, David Frank wrote:
|>
|>> "Do you agree that PL/I cannot duplicate my generic Copy function? "

|I will add a 2nd question to you, do you think PL/I syntax supports a
|user-written PACK function?

Frank's Copy function for strings is not required in PL/I,
The DEFINED attribute handles this.
Also, the STRING built-in function handles this.

Generic procedures to imitate the Fortran PACK and UNPACK
functions were written a long time ago.




David Frank

2005-08-24, 7:56 am


"robin" <robin_v@bigpond.com> wrote in message
news:lESOe.8628$FA3.6791@news-server.bigpond.net.au...
> |"Tim Challenger" <tim.challenger@aon.at> wrote in message
> |news:1124709069. 7d47947a0368832b424783e50fa2110e@teranew
s...
> |> On Mon, 22 Aug 2005 09:16:00 GMT, David Frank wrote:
> |>
> |>> "Do you agree that PL/I cannot duplicate my generic Copy function? "
>
> |I will add a 2nd question to you, do you think PL/I syntax supports a
> |user-written PACK function?
>
> Frank's Copy function for strings is not required in PL/I,
> The DEFINED attribute handles this.
> Also, the STRING built-in function handles this.
>
> Generic procedures to imitate the Fortran PACK and UNPACK
> functions were written a long time ago.
>


And the reason a google search of comp.lang.pl1 archive doesnt reveal that
code for these functions exist, IS?


>



robin

2005-08-24, 6:59 pm

David Frank wrote in message ...
>
>"robin" <robin_v@bigpond.com> wrote in message
>news:lESOe.8628$FA3.6791@news-server.bigpond.net.au...
>
>And the reason a google search of comp.lang.pl1 archive doesnt reveal that
>code for these functions exist, IS?


You won't find them posted.


Rich Townsend

2005-08-24, 6:59 pm

David Frank wrote:
> "robin" <robin_v@bigpond.com> wrote in message
> news:lESOe.8628$FA3.6791@news-server.bigpond.net.au...
>
>
>
> And the reason a google search of comp.lang.pl1 archive doesnt reveal that
> code for these functions exist, IS?
>


When I Google the web for "pl/i pack unpack", the first hit gives the
generic PL/I procedures for PACK and UNPACK.

cheers,

Rich
Tim Challenger

2005-08-24, 6:59 pm

On Wed, 24 Aug 2005 09:13:03 GMT, David Frank wrote:
> And the reason a google search of comp.lang.pl1 archive doesnt reveal that
> code for these functions exist, IS?


You don't know how to use Google?
--
Tim C.
glen herrmannsfeldt

2005-08-24, 6:59 pm

robin wrote:

(snip)

> Frank's Copy function for strings is not required in PL/I,
> The DEFINED attribute handles this.
> Also, the STRING built-in function handles this.


For the cases it can be used, Fortran EQUIVALENCE does
the same thing. I am not sure if it can or can't be used
in this case, though.

There are also some restrictions on DEFINED, though different
than those on EQUIVALENCE.

-- glen

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com