Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #21759] Documentation for PMCS

8 views
Skip to first unread message

Alberto Simões/epl

unread,
Apr 23, 2003, 3:26:28 AM4/23/03
to perl6-i...@perl.org

Perlstring documentation, still simple and incomplete...

cheers, Alberto
--
Departamento de Informatica - Universidade do Minho

"The C Programming Language -- A language which combines the
flexibility of assembly language with the power of assembly language."

perlstring.pod

Alberto Simões/epl

unread,
Apr 23, 2003, 5:11:56 AM4/23/03
to K Stol, perl6-i...@perl.org
On Wed, Apr 23, 2003 at 10:13:06AM +0200, K Stol wrote:
| Hello Alberto,
| I read your specs, and I have the following remarks/questions.
|
| 1:
| and now the string is on C<S0> register. You can set an integer or
| numeric value as if it was a string:
|
| set P0, 3.1415926
| Q: Is this the same then, as: set P0, "3.1415926" ?

Right.
|
| 2:
| -------------
| and if the content of the PMC string is numeric, you can go in the
| other way too:
|
| set N0, P0
|
| This means that:
|
| set P0, "foo"
| set N0, P0
|
| will put '0' in C<N0>.
|
| Q: Why will this put '0' into N0? Is '0' the numeric value of "foo". This is
| a bit unclear.

Yes. That's the reason. I can try to explain it better...

|
| 3.
| ---------------------
| Shouldn't "destroy" be mentioned? In all docs the "new" operator is
| mentioned (I don't know if the others
| mention "destroy"). What happens when destroy gets called, are there any
| special cases?

There is a destroy command? :-)
I think I need to read a little more code.

Thanks for the corrections/ideas.

Cheers, Alberto

0 new messages