This content has been marked as final. Show 2 replies
> how can i declare in actionscript such a new data type, and
> after - to use as i do in delphi
It goes without saying that any new datatype in ActionScript can only do
what ActionScript is inherently capable of doing. Your sample code looks
fine, in that regard. To declare a datatype in ActionScript 2.0, you'll
have to write your own class.
Check out Joey Lott's three-part ActionScript 2.0 Primer for details.
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."
If you want to pass a function (pointer) as an argument, you can just do so.
fnx(t0,x0,f); //means fp(t0,x0,f); - when applying the procedure.
"ihtus" <email@example.com> wrote in message
> I have a new Data type ( fxn ) declared in delphi, and i would like to
> the code to actionscript
> type fxn=procedure(t:extended;x:array of extended;var f:array of
> procedure fp(t:extended;x:array of extended;var f:array of extended);
> procedure r_kutta6(eps,t0:extended;x0:array of extended;fnx:fxn;
> var t:extended;var x:array of extended);
> fnx(t0,x0,f); //means fp(t0,x0,f); - when applying the procedure.
> how can i declare in actionscript such a new data type, and after - to
> i do in delphi