Hi all!

2011/10/5 Fábio Costa <[email protected]>:
> I am using an old version of LS, will donwload the latest and if i can
> install it i'll send  the patch.

Thank you very much for hacking into this!

Not to be a bummer but shouldn't we have something more usual like and
infix operator:
  10 mod 2
?

Romain

> Em 5 de outubro de 2011 10:22, David Baelde <[email protected]>
> escreveu:
>>
>> Hi,
>>
>> That kind of question should perhaps be asked on savonet-devl rather
>> than users. It's not important. I'm glad to see somebody hacking into
>> our ML code!
>>
>> 2011/10/3 Fábio Costa <[email protected]>:
>> >  let t = Lang.univ_t ~constraints:[Lang_types.Num] 1 in
>> >     add_builtin "mod" ~cat:Math ~descr:"Modules of number"
>> >       ["",t,None,None;"",t,None,None] t
>>
>> This is a bit too general, it claims that the operator supports all
>> numbers, ie. int and float. But the code below does not actually
>> support floats. You should thus replace the definition of t by "let t
>> = Lang.int_t in ...".
>>
>> >       (fun p ->
>> >          match p with
>> >            | ["",{Lang.value=Lang.Int a};"",{Lang.value=Lang.Int b}] ->
>> >                Lang.int (a mod b)
>> >            | _ -> assert false)
>>
>> That is perfect!
>>
>> By the way, send us the updated patch and we'll include it in the
>> official source.
>>
>> Thanks,
>> --
>> David
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to