Update page 'Future P# Versions'

2018-07-17 14:33:46 +02:00
parent a14c9a2518
commit a024804e2c

@@ -1,3 +1,4 @@
## Ideas
This document describes an ideas for future versions of P# language specification This document describes an ideas for future versions of P# language specification
* Pointers support * Pointers support
@@ -6,3 +7,28 @@ This document describes an ideas for future versions of P# language specificatio
* Namespace support * Namespace support
* Operator overloading * Operator overloading
## Enumerators
<%
enum color = {'red', 'green', 'blue'};
color $mycol = 'red';
switch($mycol) {
case 'red':
case 'green':
case 'blue':
}
%>
## Structures
<%
struct data {
string fname;
string lname;
int age;
}
data $person;
$person.fname = 'Martin';
$person.lname = 'Smith';
$person.age = 27;
%>