This website requires JavaScript.
Explore
Help
Sign In
miloignis
/
kraken
Watch
1
Star
0
Fork
0
You've already forked kraken
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
Files
417e5ed89882849f2985fe781146e7f958e00ebf
kraken
/
tests
/
emptyBracesFunction.krak
10 lines
110 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Added support for destructors! This is done by making a void, parameterless member method called destruct which is called when a stack object falls out of scope, if it exists. This is implemented by the generator, in this case CGenerator.
2014-06-28 08:31:33 -07:00
import io;
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|void| nothing() {}
Added support for destructors! This is done by making a void, parameterless member method called destruct which is called when a stack object falls out of scope, if it exists. This is implemented by the generator, in this case CGenerator.
2014-06-28 08:31:33 -07:00
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| main() {
Added support for destructors! This is done by making a void, parameterless member method called destruct which is called when a stack object falls out of scope, if it exists. This is implemented by the generator, in this case CGenerator.
2014-06-28 08:31:33 -07:00
nothing();
println("It was nothing");
return 0;
}
Reference in New Issue
Copy Permalink