On Fri, 8 Aug 2003, TOGoS wrote:
> Unprototyped :-) I guess I didn't make that quite
> clear, enough.
Nah, you did. I just didn't think about it... :)
I think I see the problem now.
> maybe this kind of unprototyped function is expected
> to be uncommon enough that we can put up with having
> to emit code like the above... But unless people are
> really sure this is the way to go, it seems to me that
> we ought to be able to do better :-S Perhaps there
> could be a set of opcodes that allow called functions
> to treat the parameter list as a single array? That
> might be the best of both worlds. Kind of like the
> save_top op saving your code from 16 save operations.
> Except more important :-P
>
> sub print
> load_params P0 # all your parameters are now in $P0
> for p in P0
> print p
> end
> end
>
Hmm. That would be easy if there were an easy way
to loop through the registers...
reg = 5
for x = 1 to numparams:
$P0 = P[reg+x]
Sincerely,
Michal J Wallace
Sabren Enterprises, Inc.
-------------------------------------
contact: [EMAIL PROTECTED]
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--------------------------------------