Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^10: Win32, fork and XS globals

by ikegami (Pope)
on Oct 03, 2011 at 03:34 UTC ( #929259=note: print w/ replies, xml ) Need Help??


in reply to Re^9: Win32, fork and XS globals
in thread Win32, fork and XS globals

In C, the keyword 'static' has a very particular meaning and purpose. It denotes both persistence and limited visiblity.

Yes, and the mechanism provides the same persistence and limited visibility in Perl's memory space.

But the main problem is that what the macros actually do is not explained.

Which one do you think isn't explained? Unless I'm missing one, the example explains exactly how to use each one.

You try to come across all superior, by taking the documentation as gospel and good, and quoting it verbatim, rather than actually thinking through the implications.

Your argument is lost because every premise is completely wrong.

  • I didn't take the docs as gospel. I've actually used the mechanism recently. It was easy, it did the trick, and it should do the trick for the OP.
  • I didn't quote any docs.
  • I did think through the implications: It solves the OP's problem cleanly and simply. Perhaps you are over-thinking it or trying to make a political statement.

Instead of just trying to help the OP, you try to make political capital from a documentation reference.

That makes no sense. I simply provided a link that explained how to use the mechanism *you* suggested, since you completely failed to help the OP in that regard.


Comment on Re^10: Win32, fork and XS globals
Re^11: Win32, fork and XS globals
by BrowserUk (Pope) on Oct 03, 2011 at 06:26 UTC

    There it is right there. I say, and you even quote me saying: "what the macros actually do is not explained."

    And your response is

    the example explains exactly how to use each one.

    It is impossible to make any headway with you, because you don't read what is written -- even when you've just quoted it -- and then you prattle on and on about things that simply aren't in dispute.

    So, just stop!


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      What they do is: create per-interpreter variables when used as per the example. The "d" fetches the context. The "p" one can be used to pass it as a parameter. The "a" one is used to received it as a parameter. Use the "_" variants if it's followed by another parameter or argument. This is all explained.

      You said that you already knew that, you said you didn't want me telling you what you already know, and you're always saying you didn't mean what I read, so I tried guessing what you actually wanted to know.

        And you are still not reading what is written.

        Hey. You're even admitting it.

        so I tried guessing what you actually wanted to know.

        I did not ask anyone for an explanation. Much less you. I didn't ask any questions. I made a statement of opinion.

        So stop misinterpreting what is written. In fact: Just stop.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-09-20 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls