Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import io;
|
||||
|
||||
template <T,J> void addAndPrint(T a, J b) {
|
||||
template <T,J> |void| addAndPrint(|T| a, |J| b) {
|
||||
print(a+b);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|int| main() {
|
||||
|
||||
addAndPrint<int,double>(10,12.14159);
|
||||
print("\n");
|
||||
|
||||
Reference in New Issue
Block a user