Re: [Vala] casting out parameters



On Wed, 2010-05-26 at 20:23 +0200, pancake wrote:
And if it's a subclass? Which is what 'as' does.


'as' is safe. If the cast is incompatible, you
get null.

Of course vala could have been designed to allow
  test(out bar as Bar)
or some other syntax to tell the compiler that
we know what we are doing.

hand
Nor Jaidi Tuah





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]