Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

User:Circlepuller/Venom: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Circlepuller
Created page with "Venom is an exciting idea of a programming language by me. <pre> // Venom (@(random)) // Import a class called "random" .int($random_number) = %random.randint(0,1) /..."
imported>Circlepuller
Created page with "Venom is an exciting idea of a programming language by me. <pre> // Venom (@(random)) // Import a class called "random" .int($random_number) = %random.randint(0,1) /..."
 
(3 intermediate revisions by the same user not shown)
(No difference)

Latest revision as of 06:34, 29 June 2011

Venom is an exciting idea of a programming language by me.

// Venom
(@(random)) // Import a class called "random"
.int($random_number) = %random.randint(0,1)
// Integer "random number" is a random integer from the random class's "randint" function
// Let's do an if statement with it
(?($random_number == 1))
   .print("Fuck you")
(?())
   .print("Hello")
.print(", World!\n")
/*
If the integer "random_number" has the value of 1, it would say "Fuck you, World!"
Else it would say "Hello, World!"

Onto a different file.
*/
// There would be a huge library for basics
(@(%arr))
(@(%flt))
(@(%hex))
(@(%int))
(@(%str))
// This is a class named "myclass"
(%(myclass))
   + str($mystring)
   + (.(__construct()))
      // A construct
      .print("HI\n")
      // This sets a value for the class's "mystring"
      %this$mystring = "HI, HOW ARE YOU?\n"
   // This function is "protected"
   +- (.(reply()))
      // More interestingly, you can set local vars by making the "%this" a ".this"
      - str($funcstring) = "LOCAL STRINGS\nHOW DO THEY WORK?\n"
      .print(%this$mystring, .this$mystring)