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

Programming language idea

Name: Anonymous 2011-01-25 19:32

Hi /prog/,
I have an idea for an esoteric programming language.
It will be called BitFuck and will have bitshift operators for I/O, ambiguos syntax and will have lambdas. Also vectors and hashmaps.

Here's some example code:


template<int n>
struct f { enum { value = n * f<n-1>::value };};
template<>
struct f { enum { value = 1 };};

int main() {
   cout << /* output with bitshift? who would ever think something so stupid! LOL */ f<f<3>::value+1<f<2>::value>::value; // I'm a genious, this shit is unreadable
}

Name: Anonymous 2011-01-26 12:09

>>1:4: error: template specifiers not specified in declaration of ‘template<int n> struct f’
>>1:4: error: redefinition of ‘struct f<n>’
>>1:2: error: previous definition of ‘struct f<n>’
>>1: In function ‘int main()’:
>>1:7: error: ‘cout’ was not declared in this scope
>>1: At global scope:
>>1:2: error: template instantiation depth exceeds maximum of 500 (use -ftemplate-depth-NN to increase the maximum) instantiating ‘struct f<-0x000000000000001f1>’
>>1:2:   instantiated from ‘f<-0x000000000000001f0>’
>>1:2:   instantiated from ‘f<-0x000000000000001ef>’
>>1:2:   instantiated from ‘f<-0x000000000000001ee>’

>>1:2:   instantiated from ‘f<-0x00000000000000003>’
>>1:2:   instantiated from ‘f<-0x00000000000000002>’
>>1:2:   instantiated from ‘f<-0x00000000000000001>’
>>1:2:   instantiated from ‘f<0>’
>>1:2:   instantiated from ‘f<1>’
>>1:2:   instantiated from ‘f<2>’
>>1:2:   instantiated from ‘f<3>’
>>1:7:   instantiated from here

>>1:2: error: incomplete type ‘f<-0x000000000000001f1>’ used in nested name specifier

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