Thursday, April 29, 2010

Aum Syntax Samples: constrained domains

Working on contrained types(domains) idea, proposed syntax:
--------------------------------------------


use
RTL;

scope Test begin

//Domain with constrain
public domain HumanAge(int)
{
value >= 0 and value <= 150; }

public static class Program1 begin
public method Main
{
Console.WriteLine("Hello Delphi days!");
Console.ReadLine();
Console.WriteLine("About to crash");
var age: HumanAge;
age = 500; // CRASH!!!!!! Domain is constrained and did not pass validation
}

end;


end;

14 comments:

Anonymous said...

hwo needs this

Unknown said...

ugg boots
air jordan 13
air jordan shoes
beats headphones
bottega veneta outlet
burberry outlet
canada goose outlet
chanel outlet
cheap wedding dresses
coach outlet
dansko outlet
evening dresses
hermes belt
hermes birkin
hermes outlet
juicy couture outlet
kate spade outlet
mbt shoes
michael kors outlet
mizuno running
moncler coats
mulberry outlet
soccer shoes
nike outlet store
the north face outlet
oakley sunglasses
ray ban sunglasses
stuart weitzman boots
surpa sneakers
north face outlet
the north face clearance
the north face jackets
the north face outlet store
north face jackets
the north face uk
tommy hilfiger outlet
tory burch outlet
true religion jeans
vans shoes
ysl outlet

Unknown said...

michael kors outlet
pandora jewelry
louboutin shoes
michael kors outlet online
salvatore ferragamo
skechers outlet
abercrombie and fitch
true religion outlet
seahawks jersey
montblanc pens
20170420alice0589

Unknown said...

2018531 leilei3915
canada goose
ray ban sunglasses
pandora outlet
coach outlet store online
pandora charms
kate spade outlet online
michael kors handbags
christian louboutin shoes
louis vuitton outlet online
true religion

RanaBoss said...

Adhesive Silicone Petal Breast Lifts for all boob sizes like both large and small breast also buy sticky bras and their reviews.

Bobby Mughal said...

Bade Achhe Lagte Hain 2 is a upcoming Hindi Indian soap opera that will
premiere on 30 August 2021 at 8:00 P.M. in Sony Entertainment Television.


Desi Serial

Udaariyaan said...

From MX Player original hindi shows to Hindi dubbed shows you can make your
weekend full of entertainment with these top 10 hindi web series streaming

Bobby Mughal said...

Zindagi Mere Ghar Aana (Star Plus) Cast and Crew, Roles, Release Date, Trailer.
Zindagi Mere Ghar Aana is a Star-Plus tv show. This tv show was produced by.

Yeh Hai Chahatein

yeh hai chahatein said...

Gautam and Dhara Pandya, a middle-class married couple, manage the Pandya Store.
Apart from their business, Dhara also looks after Gautam's three younger siblings.

Anonymous said...

Watch and download fhlpino drama, movies, ph show and other Asian
dramas with english subtitles online free. teleserye for everyone! https://teleseryee.su

KissAsian said...

KissAsian is the best website to Korean dramas and movies online free with
English Subtitles and Dubbed. This website Chris Gayle, movies of genres ...

Dramacool said...


DramaCool is korean tv kshow123 website which provides latest
Korean drama, movies, Kshow and kissasian dramas with english
subtitles online free in hd quality. DramaCool for everyone!

Unknown said...

http://blog.itadapter.com/2010/04/aum-syntax-samples-constrained-domains.html

Unknown said...

thanks