<olczyk>
I'm looking at local functions, and I'm curous as to the style used to handle local functions.
<olczyk>
Eg in lisp:
<olczyk>
(defun foo()
<olczyk>
(let ((locvar nil))
<olczyk>
---
<olczyk>
)0;;end let end defun
<olczyk>
OOps the second 0 was supposed to be )
<olczyk>
But it seems that I could even define local variables in different files in ocaml.
tolczyk has joined #ocaml
tolczyk has quit [Client Quit]
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
kjs3 has quit []
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
<awwaiid>
I don't understand what you are asking, olczyk
<olczyk>
awwwaiid: Still there?
olczyk has left #ocaml []
<awwaiid>
hm
<awwaiid>
I am now. oh well.
Yurik has joined #ocaml
Mongo has joined #ocaml
<Mongo>
Are people awake? Or is there a better time I can get some help with Ocaml?
MongoMike has joined #ocaml
Mongo has quit [Read error: 104 (Connection reset by peer)]
<MongoMike>
doh
illume has quit ["Client Exiting"]
johs has quit [Read error: 110 (Connection timed out)]
tav has quit [Read error: 104 (Connection reset by peer)]
tav|sleep has joined #ocaml
gl has quit ["La foule est une somme d'erreurs qu'il faut corriger."]
gl has joined #ocaml
Yurik has quit ["Client Exiting"]
xtrm has joined #ocaml
<xtrm>
Hello World\n
<gl>
hi froggy
Yurik has joined #ocaml
<xtrm>
what means 'ua' in dot ua ?
<Yurik>
Ukraine
<mellum>
.oO( M-x what-domain )
<xtrm>
mellum: YeS fine
<xtrm>
ocamlsdl 0.5 will be out
<xtrm>
soon
gl has quit [Remote closed the connection]
gl has joined #ocaml
xtrm_ has joined #ocaml
<xtrm_>
(timeouting)
xtrm has quit [Read error: 110 (Connection timed out)]
etienne_ has joined #ocaml
groslion has joined #ocaml
groslion has left #ocaml []
groslion has joined #ocaml
groslion has left #ocaml []
etienne_ has left #ocaml []
xtrm__ has joined #ocaml
xtrm__ is now known as xtrm
xtrm_ has quit [Read error: 110 (Connection timed out)]
xtrm has quit ["Bye World\n"]
mellum has left #ocaml []
tav|sleep has quit [Read error: 104 (Connection reset by peer)]
tav has joined #ocaml
graydon has quit []
gl has quit [Connection timed out]
gl has joined #ocaml
gl has quit [Connection timed out]
graydon has joined #ocaml
hudlug has joined #ocaml
hudlug has left #ocaml []
owll has joined #ocaml
owll has quit [Client Quit]
owll has joined #ocaml
<Yurik>
owll: hi
<owll>
hia
Yurik has quit ["Client Exiting"]
owll has quit ["Client Exiting"]
Mongo has joined #ocaml
MongoMike has quit [Read error: 113 (No route to host)]
<Mongo>
Anyone care help me with a problem I'm having with the module system?
<Mongo>
My sig .mli file defines create as "val create: ('a,'b) t"
<Mongo>
My .ml file that is of that type, defines create as "let create = { nodes = []; edges = [] }". The signature comes out as "val create: ('_a, '_b) t", which obviously doesn't match up.
<smkl>
use create () and unit ->
<smkl>
at least one of the fields, nodes or edges, is mutable. so the value cannot be polymorphic
<Mongo>
I think I used to have that, but couldn't figure out how to define create as a function taking unit. 'let create = {' and 'let create = function -> {' both did not work.
<smkl>
"function () ->" or "fun () ->" would work too, but "create () =" is the shortest
<Mongo>
Ah, thanks.
<Mongo>
Any advice on how to handle errors of the type "Wrong file naming: regexParser.cmi contains the compiled interface for Regexparser" ? To top it of, regexparser.mli defines "module type REGEXPARSER". I'm running under windows, which is case-insensitive, and I have a feeling that's screwing everything up.
<smkl>
is that your program or some library?
<smkl>
anyway, what is contained by the files causes no problems
<Mongo>
It's my code. A parser implemented with regexes (as opposed to my failed attempt to use ocamlyacc)
<Mongo>
Ah. It's because I did 'open RegexParser', when I should have done 'open Regexparser'
gl has joined #ocaml
olczyk has joined #ocaml
<olczyk>
Can anyone suggest an example of ocaml code. Some not too short but not too long,
<olczyk>
say about 100-300 lines.
steele_ has joined #ocaml
<steele_>
hi
steele_ has quit ["."]
olczyk has quit [Read error: 113 (No route to host)]