http://www.perlmonks.org?node_id=993318


in reply to Re: (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
in thread (OT) How can I do unless(caller) { main; } in C using GCC in Windows?

Why is that so strange? Perl is written in C after all.We also just had a slew of threads discussing using LLVM such as Perl 5 Optimizing Compiler, Part 5: A Vague Outline Emerges.

Elda Taluta; Sarks Sark; Ark Arks
My deviantART gallery

  • Comment on Re^2: (OT) How can I do unless(caller) { main; } in C using GCC in Windows?

Replies are listed 'Best First'.
Re^3: (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
by Anonymous Monk on Sep 12, 2012 at 22:35 UTC

    What makes you think that PerlMonks is a good place to ask for C advice?

    Why is that so strange?

    That LLVM stuff was about perl, this question isn't about perl (or embedding perl , calling perl from c ...)

      Yeah, but it's not like this is the first off-topic post and he marked as such. And there is a (very) loose tie-in to Perl. Why make a big deal out of it? If you do not want to answer it, then just ignore it. Heck, it was not even an approved node until I just approved it!

      Update: It's not like we are getting tons of off-topic C questions. If we were, then it might be time to clamp down on it. But for one or two a year I am not seeing a problem. And since Perl is written in C, it is tangentially related, much like SQL and database questions are. And that's ignoring XS. Becoming better at C in general likely translates to writing better XS based modules later on, right? So how off-topic is it really? Not as off-topic as Java I'd wager.

      Elda Taluta; Sarks Sark; Ark Arks
      My deviantART gallery

        I wasn't especially concerned about off-topicness. I was just wondering why the OP had chosen to ask a question about C on a site dedicated to an entirely different programming language. There must surely be other sites where they'd get reach a more expert audience.

        perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

        Yeah, but it's not like this is the first off-topic post and he marked as such. And there is a (very) loose tie-in to Perl. Why make a big deal out of it?

        Well, no-one is maing a "big deal" out of it, but since this is a 1st post by newbie, someone has to point out focus of the site

        If you do not want to answer it, then just ignore it. Heck, it was not even an approved node until I just approved it!

        According to What is consideration? you should not approve OT nodes

        Update: It's not like we are getting tons of off-topic C questions. If we were, then it might be time to clamp down on it. But for one or two a year I am not seeing a problem. And since Perl is written in C, it is tangentially related, much like SQL and database questions are. And that's ignoring XS. Becoming better at C in general likely translates to writing better XS based modules later on, right? So how off-topic is it really? Not as off-topic as Java I'd wager.

        Oh boy :)

        I have unapproved the question. It does not belong in any section here.