Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.

Replies are listed 'Best First'.
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?
[Your Mother]: $dir->chidren, grep {} $file->slurp &c &c. :P
[Your Mother]: Stick with what you know. Or post a SOPW and if it's not complicated I guarantee someone will answer; me if it's straightforward and no one else gets it better first.
[1nickt]: ++YourMother (Grammar Vigilante of Bristol)
[Lady_Aleena]: Um, how does grep do multiline? print "$file:$_" if grep { /get_(array|hash| data)\(.+\)/ } $_; only returns the same 18 lines the command line grep does.
[Lady_Aleena]: my scratchpad has what I have so far.
[choroba]: what do you mean by multiline?
[Discipulus]: thanks 1nickt!
[choroba]: grep is a filter, it selects elements from a list based on a boolean condition
[moritz]: you need to read the file in one go to do a multiline regex match
[erix]: ha ha, I like the Vigilante

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-05-23 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?