<jazz264>
!HELP How to type cast a bin_tree to a list? Any core features available?
avsm has quit [Quit: Leaving.]
<flux>
I don't know what a bin_tree is, it's not an OCaml standard data type. in OCaml you don't really do casting, maybe you are looking for a function with signature xxx bin_tree -> xxx list.
<Ptival>
if this is you bin_tree, then just a few lines under there is a list_of_tree function
<Ptival>
which, as flux mentioned, is a function whose type is 'a bin_tree -> 'a list
dsheets has quit [Ping timeout: 255 seconds]
_andre has joined #ocaml
avsm has joined #ocaml
gnech has quit [Ping timeout: 244 seconds]
jazz264 has quit [Quit: Page closed]
mnabil has joined #ocaml
oriba has joined #ocaml
rby has joined #ocaml
Submarine has quit [Ping timeout: 276 seconds]
Xizor has joined #ocaml
ulfdoz has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
munga has joined #ocaml
emmanuelux has joined #ocaml
ikaros has joined #ocaml
munga has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
letrec has joined #ocaml
munga has joined #ocaml
Tobu has joined #ocaml
munga has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
raichoo has joined #ocaml
ousado has joined #ocaml
ousado has quit [Changing host]
ousado has joined #ocaml
antegallya has joined #ocaml
antegallya has left #ocaml []
Tobu has quit [Ping timeout: 248 seconds]
emmanuelux has joined #ocaml
ocp has joined #ocaml
Tobu has joined #ocaml
pilki has joined #ocaml
ttamttam has joined #ocaml
Julien_T has joined #ocaml
lamawithonel has joined #ocaml
f[x] has quit [Ping timeout: 255 seconds]
f[x] has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
Drakken has joined #ocaml
Snark has joined #ocaml
Julien_T has quit [Ping timeout: 272 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
avsm has quit [Client Quit]
avsm has joined #ocaml
hcarty has joined #ocaml
scrappy_doo_ has joined #ocaml
Drakken has quit [Ping timeout: 240 seconds]
Julien_T has joined #ocaml
Kakadu has quit [Quit: Page closed]
Cyanure has quit [Ping timeout: 252 seconds]
gnech has joined #ocaml
mcclurmc has quit [Excess Flood]
mcclurmc has joined #ocaml
scrappy_doo_ is now known as Drakken
<Drakken>
This line in my _tags file doesn't seem to be working: </home/dan/ocaml/foo>: include
<Drakken>
The _tags file is in /home/dan/bar
<thelema>
you're including something outside your source tree?
Drup has joined #ocaml
<thelema>
I've never seen ocamlbuild used that way
<Drakken>
right. is there a way to do that with _tags?
<adrien>
it's a big no for ocamlbuild
<thelema>
I don't think it would work.
<thelema>
use a symlink to get it in your tree
<adrien>
what you "include" is copied into the _build/ folder
<adrien>
(or install with ocamlfind)
<Drakken>
thelema I tried that. No luck yet, but I'll see if I can find any mistakes I made.
<thelema>
maybe you'll have to copy it into your source tree.
<adrien>
iirc ocamlbuild won't follow the symlinks
<thelema>
adrien: ah
<Drakken>
or package my code for findlib?
<thelema>
that would be agood way to do it.
<Drakken>
adrien that sounds right
<thelema>
It's pretty easy; just build a .cm[x]a file with all your modules and make a META file that says to use that cm[x]a, and ocamlfind install META foo.cma foo.cmxa *.cmi
<adrien>
you've skipped the package name ;-)
<thelema>
adrien: oops
<thelema>
something like that.
<adrien>
and if you're using oasis, ocaml setup.ml -install
<thelema>
adrien: I think you need the plugin META
<thelema>
well, maybe not, if you write teh meta yourself
<adrien>
true
philtor has joined #ocaml
raichoo has quit [Quit: leaving]
ftrvxmtrx has quit [Quit: Leaving]
scrappy_doo_ has joined #ocaml
<adrien>
just got this error: is the wording new? Their 7th fields have different names, request and request_page.
<adrien>
when dealing with records
<adrien>
(and a module and its signature)
<thelema>
interesting; I don't think I've gotten that message before
avsm has quit [Quit: Leaving.]
Drakken has quit [Ping timeout: 240 seconds]
<adrien>
I guess it requires fields to be ordered the same way and it might be only used when there are more thana a few fields
ttamttam has left #ocaml []
philtor has quit [Ping timeout: 255 seconds]
ankit9 has quit [Quit: Leaving]
<adrien>
anyone know where is the doc for operators in ocaml? I think I'm going to define one for ignore (I'm doing gtk stuff and my code overflows with calls to ignore)
<thelema>
operators? you mean %foo?
<thelema>
adrien: yes, fields must have a consistent ordering. I think even for small records
<adrien>
right: Their first fields have different names, b and a.
<adrien>
Their first fields have different names, b and a.
<adrien>
bah
<thelema>
{a:int; b:int} is not the same as {b:int; a:int}