Re: PQ's RWL lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

PQ-

Couldn't you do something like this?

FILE: MYLIB.RWL
ROUTINES: MyProc(XYZ,QWE), MyProc1(QIN), MyProc2(UI),
MyProc3

HAVE THE VARS: (in lib)
sequence file_handles,routine_handles,param_handles
(in program)
atom rwl_hdl,xMyProc,xMyProc1,xMyProc2,xMyProc3
file_handles={}
routine_handles={}
param_handles={}

have an open_rwl() and...
file_handles= {handle}

have an link_proc() and...
param_handles={{{XYZ,QWE},{QIN},{UI},{}}}

when the routine is called through a call_proc() or
equiv., it looks up where to pop the values.

Like for MyProc, you'd do something like:
   call_proc(xMyProc,{Val1,Val2})


Another thing that I'd kinda like would be able to
write some Eu-like code and be able to turn that into
one of your RWL files.  This looks like a very good
project and could allow for DOS what DLL does for
Windows.  Maybe the code be kinda like C--, where you
can have C-based code with inline ASM, denoted with a
$.

Ex. ("C--" like Euphoria)

proc MyProc()
clear_screen()
$ ASM CODE
$ ASM CODE
puts(1,"Finished with proc MyProc().")
end proc

Thanks for reading and hopefully it'll work!
Mike Hurley

=====
Think about it-

Bill Gates has enough money to buy everybody in the world a large
pizza.  Most of us don't even have enough money to buy everybody
in the world a 20 minute phone call for 99 cents!

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu