PB closing in on C?

For everything that's not in any way related to PureBasic. General chat etc...
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

PB closing in on C?

Post by Trond »

Is PureBasic closing in on C when it comes to compiling strange stuff?

(Display with a monospaced font.)

Compiles cleanly:

Code: Select all

pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb
pb -------------------------------------------------------------- pb
pb -- pb----pb-pb-pb-pb----------------pb-pb-pb-pb------------ -- pb
pb -- pb-pb-pb-pb-pb-pb-pb-pb----------pb-pb-pb-pb-pb-pb------ -- pb
pb -- pb-pb-pb-pb-pb-pb-pb-pb-pb-------pb-pb-------pb-pb-pb--- -- pb
pb -- pb-pb-----------------pb-pb------pb-pb----------pb-pb--- -- pb
pb -- pb-pb-----------------pb-pb------pb-pb------------pb-pb- -- pb
pb -- pb-pb-----------------pb-pb------pb-pb------------pb-pb- -- pb
pb -- pb-pb-----------------pb-pb------pb-pb------------pb-pb- -- pb
pb -- pb-pb----------------pb-pb-------pb-pb-----------pb-pb-- -- pb
pb -- pb-pb--------------pb-pb---------pb-pb---------pb-pb---- -- pb
pb -- pb-pb-pb-pb-pb-pb-pb-pb----------pb-pb-pb-pb-pb-pb------ -- pb
pb -- pb-pb-pb-pb-pb-pb-pb-------------pb-pb-pb-pb-pb-pb-pb--- -- pb
pb -- pb-pb----------------------------pb-pb-----------pb-pb-- -- pb
pb -- pb-pb----------------------------pb-pb-------------pb-pb -- pb
pb -- pb-pb----------------------------pb-pb-------------pb-pb -- pb
pb -- pb-pb----------------------------pb-pb-------------pb-pb -- pb
pb -- pb-pb----------------------------pb-pb-------------pb-pb -- pb
pb -- pb-pb----------------------------pb-pb----------pb-pb-pb -- pb
pb -- pb-pb----------------------------pb-pb-pb-pb-pb-pb-pb -- -- pb
pb -- pb-pb----------------------------pb-pb-pb-pb-pb-pb------ -- pb
pb -------------------------------------------------------------- pb
pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb ** pb
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

now trond is definitely looking for a life!

:-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

And the result is...????

I hate it when I miss the ending of a story! :P
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:D
@}--`--,-- A rose by any other name ..
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB closing in on C?

Post by PB »

@Trond: How the hell did you come up with the idea of compiling that? :shock:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Re: PB closing in on C?

Post by Hydrate »

PB wrote:@Trond: How the hell did you come up with the idea of compiling that? :shock:
Its easy, this will also compile:

Code: Select all

pb ** pb
pb -- feel-the-pure-power -- pb
pb ** pb
Heres how it works:
pb -- has to be at the start of a line
-- pb has to be at the end of it
you can put anything in between the lines, as long as its not got a space in it, and it will compile fine. You can also use ** instead of --

Odd though...
.::Image::.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

looool
how cool is that? rofl...
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Trond!!! How in the f*ck, did you think of this? :lol: :lol: :lol: :lol:

You have a weird mind, a weird mind... :D
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Code: Select all

                            OpenConsole()
                            I = 45 + $36
                            While I > 1
                            Print(Str(I))
                            Print(" bot")
                           Print("tles o")
                        Print("f beer on th")
                     PrintN("e wall,") :Delay(5)
               Print(""  + Str(I) + " bottles of bee")
               PrintN("r.") : Print("Take one down, ")
               PrintN("pass it around,") : Goto a : b:
               If I > 2 : PrintN("") : EndIf : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               : : : : : : : : : : : : : : : : : : : :
               I - 1 : Wend : Goto Epr : : : : : : : :
               a: If I > 2 : Print(Str(I-1)+ " bottl")
               PrintN("es of beer on the wall."):EndIf
               Goto b : Epr: Print("1 bottle of beer")
               PrintN(" on the wall.") : PrintN("   ")
               PrintN("1 bottle of beer on the wall,")
               PrintN("1 bottle of beer."):Print("Ta")
               PrintN("ke one down, pass it around, ")
               Print("No more bottles of beer on the")
               PrintN(" wall."):PrintN(""):Print("No")
               Print(" more bottles of beer on the w")
               PrintN("all,") : Print("No more bottl")
               PrintN("es of beer.") : Print("Go to ")
               PrintN("the store and buy some more, ")
               Print("99 bottles of beer on the wall")
                 PrintN(".") : : : : : : : : Input()
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Time for the first obfuscated code contest in PB :)
quidquid Latine dictum sit altum videtur
Post Reply