Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Namespaces (use translatetor)

Name: Anonymous 2011-06-04 5:29

Hi,

Mainstream in other languages ​​(refer to: Java, PHP, python, perl, C + +) There vivid language to improve to make the new language version, annoying to fix problems or stolen from thoughts of others efforts. Why is it like in C? Why is C so taste bad? I mean, I know C and Unix and all so big and old, but they like, why not come to add namespaces?

Name: Anonymous 2011-06-04 5:40

Because you can just prefix your names with MYPSEUDONAMESPACE_

Name: Anonymous 2011-06-04 5:44

"Namespaces" in Java? 2/10.

Name: Anonymous 2011-06-04 5:55

>>1
C + +
Also, because C and Unix are bad. Not that C++ namespaces fixed C's problem, the source code is full of STD      

Name: Anonymous 2011-06-04 5:58

>>4
C does what it says on the tin. I really don't think it's bad, just not as good as it could have been.

Name: Anonymous 2011-06-04 6:16

C is a language with no reliable implementation.
http://blog.regehr.org/archives/539

Name: Anonymous 2011-06-04 7:00

>>6
The standard itself is not reliable, it has lots of holes and unspecified behaviours just for ``optimizations'' (= compilers guessing what you meant).

Name: Anonymous 2011-06-04 7:28

>>7
That's different to implementations that follow the standard (the bits without undefined behaviours) not doing what they're supposed to.

Name: Anonymous 2011-06-04 13:17

MORE LIKE
SIX CHARACTER IDENTIFIERS WAS GOOD ENOUGH FOR THE PDP-8, IT'S GOOD ENOUGH FOR YOU FAGS
AMIRITE LOLLLLLLLLLLLLLLLLLLLLLLLZzz!!11oNE!!1ONE1!

Name: Anonymous 2011-06-04 13:18

>>9
Not you again.

Name: Anonymous 2012-08-12 10:51

check 'em

Name: Anonymous 2012-08-12 11:59

Implying there are no namespaces in C.
Check this: http://en.wikipedia.org/wiki/Namespace#Namespaces_in_Programming_Languages
And then check this:
#include <stdio.h>
#define namespace struct

namespace {
    int boxSide;
} Box1;
 
namespace {
    int boxSide;
} Box2;
 
int main () {
    int boxSide = 42;
    Box1.boxSide = 4;
    Box2.boxSide = 12;
    printf("%d\n", Box1.boxSide); //output 4
    printf("%d\n", Box2.boxSide); //output 12
    printf("%d\n", boxSide);      // output 42
    return 0;
}

Name: Anonymous 2012-08-12 13:24

>>12
#define namespace struct
Please be a troll.

Don't change these.
Name: Email:
Entire Thread Thread List