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
/
stdlib
/
trivial_container.krak
10 lines
103 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fixed a ton of stuff with function templates. Works well now. Next up: multiple template types and fixing object definition ordering (both where templates should go and objects with other pointers)
2014-05-19 20:00:35 -04:00
import io;
typedef template <T> trivialContainer {
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
|T| data;
|void| print() {
Fixed a ton of stuff with function templates. Works well now. Next up: multiple template types and fixing object definition ordering (both where templates should go and objects with other pointers)
2014-05-19 20:00:35 -04:00
print(data);
}
};
Reference in New Issue
Copy Permalink