caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Strange camlp4 issue
@ 2012-10-01 16:21 Philippe Veber
  2012-10-01 22:39 ` Jeremy Yallop
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Veber @ 2012-10-01 16:21 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

Dear camlp4ers,

A syntax extension of my own fails or succeeds on a given file depending on
the output :

[gesundheit:~/fitdistrplus 18:11]$camlp4o ~/.opam/3.12.1/lib/R/R_syntax.cma
src/fitdistrplus.ml
open Batteries

open Rbase

[...]
          method scale =
            List.nth
              (R.floats_of_t
                 (let a7818b19c = r in
                  let _ () =
                    let _ = (a7818b19c#compound : Rbase.compound 'abdf89974)
                    in
                      fun (ab922d605 : 'abdf89974) ->
                        (ab922d605#estimate : 'a8ec34edb)
                  in (a7818b19c#component "estimate" : 'a8ec34edb)))
              1
          method location_sd = assert false
          method scale_sd = assert false
          method fitdistcens = fitdistcens
        end

  end


[gesundheit:~/fitdistrplus 18:11]$camlp4o ~/.opam/3.12.1/lib/R/R_syntax.cma
src/fitdistrplus.ml > rien.ml
File "src/fitdistrplus.ml", line 157, characters 47-48:
Failure: "invalid type"

I observe this behaviour with versions 3.12.1 and 4.00.0

Does it ring a bell to someone?

Cheers,
  Philippe.

[-- Attachment #2: Type: text/html, Size: 4173 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-02  7:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-01 16:21 [Caml-list] Strange camlp4 issue Philippe Veber
2012-10-01 22:39 ` Jeremy Yallop
2012-10-01 22:45   ` Anil Madhavapeddy
2012-10-02  7:21     ` Philippe Veber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).