[quirks-uvm-devel] Library conception
Status: Pre-Alpha
Brought to you by:
teodor
From: Max <rez...@us...> - 2002-04-09 07:37:03
|
Sergei Lodyagin wrote: >> po.code = ftell (out_file); >> --------^^^------- >> >> It seems ftell return -1 for stdin which is unaccepteble for next code. >> > OK. Well. It wasn't a good idea. (I tried perform verification of code > by fixing > a file offset while writing and check it when reading the file. But in > all other cases, > *.ru files are always processed with sequential access). > I think throw out all ftell stuff from the VM code. But before it I > think make a full > specification of binary code module format. It doesn't really need store > positions > (as the ftell make) > Actually I dont insist on stdout writing. I was just surprised. > Regarding this, I think about whether to make a binary code cat - > indifferent. > For example. You have 2 files: > > module1.ru > module2.ru > > Then I can paste together them in one module by `cat': > > cat module1.ru module2.ru > module.ru. > > > It is when I found a feature but don't known is it useful or not > (but actually, the coding of our binary files makes possible such > procedures). > > How do you think, is it useful feature? > It depends on library architecture you choise. How do you intend to build it? For instance I need to call a procedure from other module. I need ProcedureId to do this. How can I know ProcedureId by Module Name + Procedure Name? All procedures from a module are numerated from 1. Right? If you merge two modules how can you distinguish first procedure from first module and from second module? Max |