You are not logged in.

#1 2005-03-28 22:08:16

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

digraphs anyone?

digraphs are funny - they're C/C++ aliases for some symbols...
I have no clue what the point was, but they're great to obscure code:

int main(int argc, char *argv<::>)
<%
   return printf(" I am %s",argv<:0]);
%>

they also include words for boolean operators (and, or, not, xor_eq)...

has anyone seriously used these ever?

Offline

#2 2005-03-28 22:27:06

smith
Member
From: Crescent City, CA
Registered: 2005-02-19
Posts: 77

Re: digraphs anyone?

Seems like another example of C++ bloat.  I guess you could use them if your keyboard lacks the required characters.  Where did you find this?


I have nothing to say, and I am saying it.

Offline

#3 2005-03-28 22:57:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: digraphs anyone?

Always knew about it - it's not C++, it's C as well (as far as ANSI is concerned), so no, it has nothing to do with this fabled "bloat"

The reason it came up was I was looking at one of those "spot the syntax error" things and it had something like:

if (argc > 4 and argv[3][0 :>> 4) {...}

which is proper syntax... but it looks like a rshift

Offline

Board footer

Powered by FluxBB