This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PrintLn("a" + "B"); | |
----------------- | |
String __a = { .len = 1, .string = "a", .refCount = 1 }; | |
String __b = { .len = 1, .string = "b", .refCount = 1}; | |
__a.concat(&__b); | |
PrintLn(__a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class Form1 : Window | |
{ | |
caption = $"Form1"; | |
background = formColor; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class TriApp : Application | |
{ | |
ConsoleFile f { }; | |
void Main() | |
{ | |
int w = 50; | |
int h = 20; | |
bool filled = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class TriApp : Application | |
{ | |
ConsoleFile f { }; | |
void Main() | |
{ | |
int w = 50; | |
int h = 20; | |
bool filled = false, inverted = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class TriApp : Application | |
{ | |
ConsoleFile f { }; | |
void Main() | |
{ | |
int w = 50; | |
int h = 20; | |
bool filled = false, inverted = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class TriApp : Application | |
{ | |
ConsoleFile f { }; | |
void Main() | |
{ | |
int w = 50; | |
int h = 20; | |
int x, y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class TriApp : Application | |
{ | |
ConsoleFile f { }; | |
void Main() | |
{ | |
int w = 50; | |
int h = 20; | |
bool filled = false, inverted = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
ConsoleFile con { }; | |
class MySocket : Socket | |
{ | |
unsigned int OnReceive(unsigned char * buffer, unsigned int count) | |
{ | |
con.Write(buffer, 1, count); | |
return count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Test() | |
{ | |
enum Values { foo = 0, bar = 1 } am = 1, pm = 1; | |
unsigned char t = 4; | |
if(bar == 2) | |
{ | |
} | |
if(t - am - pm == 2) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App : Application | |
{ | |
Map<const String, const String> m { }; | |
void Test() | |
{ | |
char key[256] = "Foo"; | |
char value[256] = "Bar"; | |
m.Add({ key, value }); |