Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Win32, fork and XS globals

by BrowserUk (Pope)
on Oct 02, 2011 at 06:09 UTC ( #929104=note: print w/ replies, xml ) Need Help??


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

It even includes an example.

Personally, I found that example almost completely useless. An example of "Safely Storing Static Data" that doesn't appear to declare any static data is pretty worthless.

And having half a dozen macros all named SOM_BG_MNGLSS_ABBREV only differentiated by a single even more meaningless, wimpy prefix character a or d or p or maybe an almost invisible _ prefix or suffix, is stupid, bordering on the criminal.

Which is why I didn't mention it.

Of course, if you'd offered this information as a reply to the OP rather throwing it at me, you wouldn't have got this response.


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.


Comment on Re^3: Win32, fork and XS globals
Re^4: Win32, fork and XS globals
by ikegami (Pope) on Oct 02, 2011 at 09:33 UTC

    Of course it's not allocated statically. It can't be both static and per-interpreter.

    "_" represents the even less visible ",", so complaints of visibility are silly.

    "d", "a" and "p" stand for "declare", "argument" and "parameter", and are used throughout the API just like "SV". The pattern is documented. There's a point as uses grows where short and convenient becomes more convenient than crystal clarity, and the use of "d", "a" and "p" are justified or nearly justified by this (like $_ is).

      Why not address your replies to the person asking the question, cos I already know this stuff.


      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.

        I was contradicting you. If you knew what I said, then why did you say the opposite?!?!?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-20 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls