[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kyan Pascal - A question



Hello! :)

   If someone from Kyan Pascal reads this, can they answer.  Otherwise, if
someone who has worked with Kyan Pascal before could take a whack at this
I would be very happy! :)

Question: Is there a way to send variable length strings between
procedures.

--->

I have found a way in which to copy variable length strings.  I have found
a way to print variable length strings.  I can do almost anything with
variable length strings except to assign them their values easily.  I use
a number of procedures for doing this.  So that:

To copy one string from AString to BString I would do the following:

   strcpy( address(BString), address(AString) );

But I have a problem in that Kyan Pascal will not allow the following:

   strcpy( address(BString), address('This is a test') );

I would have thought that Kyan Pascal would have allowcated memory to
the string and then passed the starting location to the procedure.

------------------------------------>

   Also, a suggestion to the people at Kyan Pascal - why not always
simply pass the address of whatever is on a call line?  It uses fewer
bytes and would standardize the way in which everything is referenced
from the call line.  Just some thoughts.

<-------------

Thanks to whoever answers. :)

----------------------------------------------------------------------------
Through the nights I've sat and wondered.  Why it is we waste and plunder.
This place in which we stay.  This world we've thrown away. - Mark Manning

mark@pokey.jsc.nasa.gov