Le 03/03/2013 16:07, Jussi Lahtinen a écrit :
> Ah, of course... and so it was totally unrelated to using executable as
> library.
> Thanks for clearing this up!
> I'll just use Byref and all works as intended.
>
> Maybe there should be some kind of warning about that in documentation,
> since it's not necessarily obvious that automatic conversion changes also
> reference? Not sure.
> Compiler (or runtime) warning would be great, but I don't see any way to
> tell whether array is passed only as argument,
> and when something is expected to come back with the array. So I don't
> think it's possible...
>
> Jussi

If you pass an object of class A to a function argument that expects an 
object of class B, expect an error of an automatic conversion to a new 
object.

There won't be any warnings for automatic conversions, this is a 
convention of the Gambas language. You must know what you are doing with 
datatypes!

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to