A simple question on multitypes...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A simple question on multitypes...

Justin Donaldson-3
If and when multitypes are available, can you typedef them?

-Justin
--
blog: http://www.scwn.net
aim: iujjd
twitter: jjdonald


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: A simple question on multitypes...

Jordo Odroj
I sure hope so. I requested this too.
This is also how ML works as well. Then you have great "deep" multitypes.
typedef Automobile = Car | Motocycle;
typedef TransportMethod = Automobile | Walk;

On Sun, Jan 23, 2011 at 11:12 PM, Justin Donaldson <[hidden email]> wrote:
If and when multitypes are available, can you typedef them?

-Justin
--
blog: http://www.scwn.net
aim: iujjd
twitter: jjdonald


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org