[code]
myGame = new VideoGame("call of gears of halo");
myGame.copyElements("halo");
myGame.copyElements("gears of war");
myGame.copyElements("call of duty 4");
myGame.enemies = {"terrorists", "aliens"};
myGame.bestGraphicsEver = hell yeh;
myGame.add("huge ass bazooka machine gun laser rifle that kills everything");
myGame.console = "xbox"; // teh ps3 sucks it has no games
[/code]
[QUOTE=ioc;17001429][code]
myGame = new VideoGame("call of gears of halo");
myGame.copyElements("halo");
myGame.copyElements("gears of war");
myGame.copyElements("call of duty 4");
myGame.enemies = {"terrorists", "aliens"};
myGame.bestGraphicsEver = hell yeh;
myGame.add("huge ass bazooka machine gun laser rifle that kills everything");
myGame.console = "xbox"; // teh ps3 sucks it has no games
[/code][/QUOTE]
No.
Just no.
[code]
CreateScript helloworld01;
DisplayMessage: "Hello"
MessageTextFont: Verdana
MessageTextColor: Red
Spacer
DisplayMessage: "World"
MessageTextFont: Arial
MessageTextColor: Green
End
/CreateScript helloworld01
[/code]
[code]
userget.ip; //get visitors ip
scanip; //read contents of the ip
end
scan;browser-get //find the browser being used
save"browser" //save the browser to the users cookies
end
read"browser" //read the browser cookie
if.browser=fire_fox {goto.ammount=1} //if the browser is read as firefox, go to local #1
if.browser=chrome {goto.ammount=2} //if the browser is read as chrome, go to local #2
if.browser=safari {goto.ammount=3} //if the browser is read as safari, go to local #3
if.browser=sware_iron {goto.ammount=4} //if the browser is read as iron, go to local #4
if.browser=ie# {goto.ammount=5} //if the browser is read as internetexplorer, go to local #5
if.browser=~ {goto.ammount=6} //if the browser is none of the above, go to local #6
end
local ammount=1 //define ammount #1
print "THAT FOX IS ON FIRE!!!!" //display text
end
local ammount=2 //define ammount #2
print "I LIKEY DE SHINY CHROME!" //display text
end
local ammount=3 //define ammount #3
print "IEY AHA LETS GO ON A SAFARI!" //display text
end
local ammount=4 //define ammount #4
print "I AM IRON MAN" //display text
end
local ammount=5 //define ammount #5
print "Please oh please change your browser." //display text
end
local ammount=6 //define ammount #6
print "Why hello there Mr. IUSEABROWSERNOBODYHASEVERHEARDOF" //display text
end
if.cookie "browser"=false //if the cookie cannot be found
print "This script cannot work without cookies enabled. //display text
end
.code
end
[/code]
[QUOTE=jmazouri;17003088][img]http://www.facepunch.com/image.php?u=13994&dateline=1232952227[/img][/QUOTE]
no, just no.
Lua++
Lua, but with the backend written in C++ (not C) and support for threading.
I'll use @ as the 'thread' operator, being place just like '.' but it takes no name afterwards. It returns the type 'thread' that has methods such as call (also __call metamethod), setpriority, wait, halt, pause, resume, etc. Functions such as 'wait' will accept the number of seconds to block (with 0 as non-blocking and <0 as infinite) and return true if successful, false if timed out and then their normal return values (like pcall).
[lua]
local str = ""
function f(s)
str = str..s
end
local tf = f@
tf("Hello ")
-- tf.wait(-1) -- As this line is commented, the result can be "Hello world!", "world!Hello " or even just "world!".
str = str.."world!"
print(str)
[/lua]
[b]Edit:[/b] And it would also have support for C++ bitwise operators such as &, |, << and >>. Not exclusive or (^), however, as it will conflict with exponential and can be done with the other symbols anyway.
[b]Edit:[/b] Maybe even assignment operators could be included, like +=, -=, *=, etc
The greatest language you will ever see.
[lua][/lua]
And you don't even have to write anything.
Something out of boredom.
[cpp]use "main";
use "main.convert";
use "main.math";
defineFunction( main, func:
callFunction( print, "Hello world!" );
defineVar( returnval, 0 );
setVar( returnval, callReturnFunction( getInput, "Type your name here" ) );
callFunction( print, "Hello, " ++ convert.toString( returnval ) ++ "! Nice to see you!" );
callFunction( printLine() );
setVar( returnval, callReturnFunction( getInput, "Type a calculation here" ) );
defineVar( calculated, callFunctionCatch( math.calculate( returnval ), "Error while calculating!" ) );
if ( calculated == successful )
{
callFunction( print, "Answer: " ++ convert.ToString( calculated ) );
}
callFunction( waitForChar ); //Pause
)[/cpp]
[code]new class Game
{
function(Game)
{
Create(Best Game Ever)
}
}
end[/code]
can we stop with the make(game) jokes?
I can't be the only one who finds them incredibly lame.
My new language wouldn't be in english something between C and python
[code]
heltal main
{
heltal myInt = 5;
om myInt == 5
{
trycka "Hello World"
}
dö 0
}
[/code]
[QUOTE=Irk89;17207671]My new language wouldn't be in english something between C and python
[code]
heltal main
{
heltal myInt = 5;
om myInt == 5
{
trycka "Hello World"
}
[highlight]dö[/highlight]
}
[/code][/QUOTE]
Kind of pessimistic program </3
[code]dö lyckligt[/code]
is that better? lol
Привет мир
pure programming :smug:
Lutche zdarova mir :D
Way to make me feel excluded
[code]
myGame = new VideoGame("Iron Man (ACTUALLY FOLLOWS THE STORY!)");
myGame.Add("Modern Graphics for Xbox 360/PS3/PC Basic Wii Sports level Graphics for Wii");
myGame.Add("Great Controls");
myGame.Add("Great Animated Cut scenes that follow Story");
myGame.Add("Awesome Multiplayer & Customisability for Multi);
myGame.Remove("Upgrade System");
myGame.Add("Iron Man Movie Storyline");
myGame.console = "All 7th Mainstream Gen";
[/code]
[QUOTE=wingless;17224772][code]
myGame = new VideoGame("Iron Man (ACTUALLY FOLLOWS THE STORY!)");
myGame.Add("Modern Graphics for Xbox 360/PS3/PC Basic Wii Sports level Graphics for Wii");
myGame.Add("Great Controls");
myGame.Add("Great Animated Cut scenes that follow Story");
myGame.Add("Awesome Multiplayer & Customisability for Multi);
myGame.Remove("Upgrade System");
myGame.Add("Iron Man Movie Storyline");
myGame.console = "All 7th Mainstream Gen";
[/code][/QUOTE]
Read my fucking post.
ITS NOT FUNNY.
GET OUT.
[QUOTE=r4nk_;17224778]Read my fucking post.
ITS NOT FUNNY.
GET OUT.[/QUOTE]
No you.
Just get over it, I'm trying to make a point not be funny.
[QUOTE=wingless;17224801]No you.
Just get over it, I'm trying to make a point not be funny.[/QUOTE]
Then you, sir, are in the wrong thread.
[QUOTE='-[ Fizzadar ]-;16842398'][code]
print 'Hello World';
[/code]
Simplicity is key.[/QUOTE]
There are quite a few languages that that code would compile and run just like that. To name two, Lua and BASIC. Actually nevermind, you'd need "s not 's.
[IMG]http://filesmelt.com/downloader/lolbasic.jpg[/IMG]
[QUOTE=Jawalt;17287951]There are quite a few languages that that code would compile and run just like that. To name two, Lua and FreeBASIC.[/QUOTE]
remove the ; and you get python!
[code]
Class Girlfriend:
Girlfriend.Cupsize='D';
Girlfriend.Hair='Brunette';
Girlfriend.Eyes='Blue';
Girlfriend.Name='Sandra';
Girlfriend.GiveHead();
Girlfriend.MakeSandwich('Bacon","Cheese","lettuce");
[/code]
[code]
SYNTAX ERROR ON LINE 1:
'Class Girlfriend:'
Girlfriend is non-existant.
[/code]
:sigh:
She should make the sandwich before she gives head, it'd be nice to have a sandwich and a chick giving you head at the same time.
[QUOTE=Goldenspoon;17289331][code]
Class Girlfriend:
Girlfriend.Cupsize='D';
Girlfriend.Hair='Brunette';
Girlfriend.Eyes='Blue';
Girlfriend.Name='Sandra';
Girlfriend.GiveHead();
Girlfriend.MakeSandwich('Bacon","Cheese","lettuce");
[/code]
[code]
SYNTAX ERROR ON LINE 1:
'Class Girlfriend:'
Girlfriend is non-existant.
[/code]
:sigh:[/QUOTE]
lol
More like
[code]
SYNTAX ERROR ON LINE 7:
Class Girlfriend has no method GiveHead()
[/code]
Wait, am I missing the joke?
That isn't a syntax error...
Don't get picky now. :eng101:
Sorry, you need to Log In to post a reply to this thread.