Niels Nes wrote:
On Mon, Dec 03, 2007 at 10:09:02PM +0100, Romulo Goncalves wrote:
Hello,
Firs question:
b.select(0@0, oid(b.count() - 3)).mark(0@0).reverse()
What is the meaning of such MIL code line?
I translate it to MAL like this: cnt := aggr.count(base);
base ? b probably?
cnt := cnt - 3;
better calc.-(cnt,3)
oid := calc.oid(cnt);
Your asigning to a type (not sure if this is allowed/possible in m5)
'oid' is an ordinary variable, if it starts with ':' it becomes a type tag. actually ':oid' introduces a temporary variable of type oid, i.e. ':oid' is equivalent to '_23:oid' for some arbitrary number
In m4 its silently ignored but later you'll get the type number when you use oid. Best is to rename your variable to for example id.
sel := algebra.select(b, 0@0, id);
mrk := bat.markT(sel,0@0); c0 := bat.reverse(mrk);
Is the order correct? Because I am getting the following type Error: !TypeException:user.str2qgrams[26]:'algebra.select' undefined in: sel:any := algebra.select(b:bat[:str,:void], _31:oid, oid:oid)
Second question: Which function I should call for: b.reverse().seqbase(0@0);
In MAL I did rev := bat.reverse(b); base := bat.setBase(rev,0@0);
But the bat.setBase is comment in bat5.mal, so what function should I use?
markH
setSequenceBase()..... use the MAL appendix to find the functions using a grep on the comments
Third question: !SyntaxException:parseError: res := [+](c1, c2); !SyntaxException:parseError: ^operator expected
batcalc.+(c1,c2);
How to resolve this error? I do not have any clue what is this about.
Regards, Romulo
Niels
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers