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
af2a28ae4fa1e0a2ec686117198d9cbc9afd6a5f
kraken
/
tests
/
test_emptyBracesFunction.krak
10 lines
114 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();
Got the new scoping working! Still some odd stuff happening to certian templates, and I think vector is having problems with new/traits. Really need to get canonnical filenames and what not worked out
2014-12-30 01:22:09 -05:00
io::println("It was 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
return 0;
}
Reference in New Issue
Copy Permalink