Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,016 members, 7,859,643 topics. Date: Thursday, 13 June 2024 at 04:05 PM

Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! (1128 Views)

Please What Should I Do? I'm Getting Error Message When Trying To Compile Java! / MESA Compile? / Javac Welcome1.java Could Not Compile The Application I Wrote,please Help. (2) (3) (4)

(1) (Reply) (Go Down)

Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Beaf: 9:56pm On Feb 14, 2012
This is a fun topic.
Straight to the point sha. Can you add C# (or other code) you think shouldn't compile, but does? Lol!
Even better, can you tell us why the strange compositions we are about to witness are legal?

Mum's, at this point please hide your daughters. Bearded men be coming to play! grin grin grin grin

My first entry (really not a mystery):

class Trash
{
int j
;
}
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Beaf: 9:57pm On Feb 14, 2012
Second entry:
shocked shocked shocked shocked shocked shocked shocked shocked shocked

class Junk
{
    private void EyeTest()
    {{{{{{{{{{{{{{{{{{{{{{{{{
    }}}}}}}}}}}}}}}}}}}}}}}}}
}
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Beaf: 9:59pm On Feb 14, 2012
Third entry:
shocked shocked shocked shocked shocked shocked shocked shocked

class Trash
{
private void EyeTest()
{
;
; ; ;
; ; ; ;
; ; ; ; ; ;
; ; ;
}
}
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Beaf: 10:01pm On Feb 14, 2012
Fourth entry:
shocked shocked shocked shocked shocked shocked shocked shocked shocked

class Junk
{
private void EyeTest()
{
{;;}
}
}
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Beaf: 10:03pm On Feb 14, 2012
. . .And, mums its safe to bring your daughters out now. The man who takes good loving care of swiggly, wiggly, jigglies is about town! grin grin grin grin

class Beaf
{
    private void EyeTest()
    {
        ;;;;;    ;;;;;;  ;;;;;;;  ;;;;;;  ;; ;;
        ;;  ;;   ;;      ;;   ;;  ;;      ;; ;;
        ;;   ;   ;;      ;;   ;;  ;;      ;; ;;
        ;;  ;;   ;;      ;;   ;;  ;;      ;; ;;
        ;;;;;;;  ;;;;    ;;;;;;;  ;;;;    ;; ;;
        ;;   ;;; ;;      ;;   ;;  ;;      ;; ;;
        ;;    ;; ;;      ;;   ;;  ;;      ;; ;;
        ;;   ;;  ;;      ;;   ;;  ;;           
        ;;;;;;   ;;;;;;; ;;   ;;  ;;      ;; ;;
    }
}


Damn! shocked shocked shocked shocked shocked shocked shocked shocked shocked shocked
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by delomos(m): 10:28pm On Feb 14, 2012
Ahahaaa , the conundrum indeed, here's on in JS:



var x=2, y=2

var Math_Funcs = {
add:function(x, y){ return ": ----- )))) "; },
multiply:function(x,y){ return "sad((((("; },
reminder:function(x, y){ return /*x % y*/ ":-D" ; }
};

alert(Math_Funcs.add(x,y));
alert(Math_Funcs.multiply(x,y));
alert(Math_Funcs.reminder(x,y));​


see what happens here: http://jsfiddle.net/gLmMm/2/

Oh no, but that was a fine looking piece of code?
Re: Beaf's Mystery C# Conundrum! It Shouldn't Compile, But No, It Does! by Nobody: 11:04pm On Feb 14, 2012
Beaf, U too Gbaski, U have never betrayed my respect for You likewise omotodun. I doff my hat oooo.

(1) (Reply)

Programming Blunders / Need Help On How To Use Netbeans IDE 8.0.2 For Programming / Connectivity

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.