mattam has quit [sterling.freenode.net irc.freenode.net]
mattam has joined #ocaml
phubuh has quit [sterling.freenode.net irc.freenode.net]
__DL__ has quit [sterling.freenode.net irc.freenode.net]
__DL__ has joined #ocaml
phubuh has joined #ocaml
g1m has quit ["dodo"]
__DL__ has quit [Remote closed the connection]
phubuh has quit [sterling.freenode.net irc.freenode.net]
phubuh has joined #ocaml
mellum has quit [sterling.freenode.net irc.freenode.net]
avn has quit [sterling.freenode.net irc.freenode.net]
avn has joined #ocaml
mellum has joined #ocaml
mimosa has quit ["I like core dumps"]
simon- has joined #ocaml
Kinners has joined #ocaml
lus|wazze has joined #ocaml
Kinners has left #ocaml []
systems has joined #ocaml
systems has left #ocaml []
rox has quit [Operation timed out]
maihem has joined #ocaml
karryall has quit ["go"]
srv has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
The-Fixer has quit [Read error: 104 (Connection reset by peer)]
systems has joined #ocaml
karryall has joined #ocaml
systems has left #ocaml []
g1m has joined #ocaml
<Maddas>
Hm, any vim user around?
<lus|wazze>
yep
<lus|wazze>
why?
<Maddas>
How do I get O'Caml auto-indenting again?
<lus|wazze>
?
<Maddas>
Last time I just modified my ocaml syntax file, but I was told that it works differently too
<lus|wazze>
set ai ?
<lus|wazze>
or do you mean something else?
<Maddas>
hm, probably ai
<Maddas>
What exactly do I set it to? :-)
<lus|wazze>
on`?
<lus|wazze>
its a flag ...
<lus|wazze>
:set autoindent
<Maddas>
doh
<lus|wazze>
the alternative would be :set noai
<Maddas>
Hm, doesn't work either
<lus|wazze>
its just the default vi autoindent
<lus|wazze>
what do you want it to do?
<Maddas>
Indent O'Caml!
<Maddas>
I'll just modify my O'caml syntax file again
<Maddas>
lus|wazze: I don't mean indent-like-last-line
<Maddas>
I mean indenting by syntax
<lus|wazze>
yeah well then the syntax file has to support it
<lus|wazze>
and i don't know if the one that comes with vim does
<Maddas>
ok
<Maddas>
I'll just copy the syntax file I hacked together on my other PC, thanks then
<Maddas>
I thought maybe the default syntax file would support it
<mellum>
Hm. I have a failure in Problems__fun_623, is there any way to find out where that is in the source? Some closure in module problem, presumably...
srv has quit ["leaving"]
systems has joined #ocaml
systems has left #ocaml []
rox has joined #ocaml
The-Fixer has joined #ocaml
mimosa has joined #ocaml
owll has joined #ocaml
owll has quit [Client Quit]
srv has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
cm has quit [Read error: 113 (No route to host)]
cm has joined #ocaml
<Maddas>
hmm
<Maddas>
srv: you there?
<srv>
Maddas: yes
<Maddas>
srv: is libnn still being developed?
<srv>
Maddas: actually, the project has been forked and renamed
<Maddas>
But I am right that there isn't any way to declare multi-dimensional arrays directly, right?
<Maddas>
I didn't use Array.create because if I use Array.create 10 (Array.create 10) then all the ten first arrays point to the same structure
<karryall>
right
<karryall>
you have to use Array.init to evaluate Array.create each time
<karryall>
got to go, bye
<Maddas>
yup
<Maddas>
bye
karryall has quit ["home"]
<Maddas>
(Was just wondering if there is a workaround)
<Demitar>
Maddas, multi-dimensional no, unless you use bigarray, to create two-dimensional arrays (matrix) you can use Array.make_matrix and Array.create_matrix
<Maddas>
hm ok, thanks
* Demitar
points to the docs. ;-)
<Maddas>
sorry for bothering :)
<Demitar>
No worries, just that if you didn't know about *_matrix you obviously never looked in the Array module documentation. :)
<Demitar>
(Which is the natural place to look really. bigarray is a bit harder to find naturally)
<Maddas>
True
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
systems has joined #ocaml
phubuh has quit [Remote closed the connection]
cgxt has joined #ocaml
<cgxt>
does anyone know how to get lists working in a parser
<Demitar>
Using ocamllex?
<cgxt>
yah
<cgxt>
i have this
<cgxt>
list_expr:
<cgxt>
|LBRACK RBRACK { ListExp [] }
<cgxt>
|LBRACK inside_list RBRACK { ListExp $2 }
<cgxt>
inside_list:
<cgxt>
|expression SEMI { ListExp }
<cgxt>
but im not sure what i should put in the brackets to make a list of expressions
<Demitar>
How about adding in inside list:
<Demitar>
Umm. Let me thing. (A bit tired so my brain works at half-speed. :)