Update page 'Future P# Versions'
@@ -1,3 +1,4 @@
|
||||
## Ideas
|
||||
This document describes an ideas for future versions of P# language specification
|
||||
|
||||
* Pointers support
|
||||
@@ -6,3 +7,28 @@ This document describes an ideas for future versions of P# language specificatio
|
||||
* Namespace support
|
||||
* 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;
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user