adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
copy` has quit [Quit: Connection closed for inactivity]
infinity0 has joined #ocaml
infinity0 has quit [Changing host]
infinity0 has joined #ocaml
artart78_ is now known as artart78
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
segmond has quit [Quit: l8r]
jao has joined #ocaml
jlam_ has joined #ocaml
pierpa has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
andreas has quit [Quit: Connection closed for inactivity]
raphaelss has joined #ocaml
_whitelogger has joined #ocaml
shinnya has quit [Ping timeout: 245 seconds]
raphaelss has quit [Ping timeout: 245 seconds]
mfp has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
oschwald has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
infinity0 has joined #ocaml
gonz_ has quit [Ping timeout: 255 seconds]
segmond has joined #ocaml
shinnya has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
vicfred has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
raphaelss has joined #ocaml
shinnya has quit [Ping timeout: 245 seconds]
Simn has joined #ocaml
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MercurialAlchemi has joined #ocaml
olibjerd has joined #ocaml
shinnya has joined #ocaml
cross_ has quit [Ping timeout: 255 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 255 seconds]
cross has joined #ocaml
segmond has quit [Quit: l8r]
dtornabene has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 255 seconds]
raphaelss has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
raphaelss has joined #ocaml
betux has joined #ocaml
raphaelss has quit [Ping timeout: 255 seconds]
dtornabene has joined #ocaml
cbot has joined #ocaml
betux has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ocaml
jlam has joined #ocaml
jlam has quit [Read error: Connection reset by peer]
jlam has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
cbot has quit [Quit: Leaving]
FreeBirdLjj has quit [Remote host closed the connection]
troydm has joined #ocaml
raphaelss has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
mfp has joined #ocaml
dtornabene has quit [Remote host closed the connection]
dtornabene has joined #ocaml
argent_smith has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
dtornabene has joined #ocaml
dtornabene has quit [Ping timeout: 255 seconds]
dtornabene has joined #ocaml
vicfred has quit [Quit: Leaving]
MK__ has joined #ocaml
MK__ has left #ocaml ["Leaving..."]
MK__ has joined #ocaml
MK__ has left #ocaml ["Leaving..."]
MK__ has joined #ocaml
<MK__> How is it possible to define a cstruct for a variable-length UDP payload?
_whitelogger has joined #ocaml
MK__ has quit [Remote host closed the connection]
toolslive has quit [Ping timeout: 258 seconds]
toolslive has joined #ocaml
rpg has joined #ocaml
silver has joined #ocaml
FreeBirdLjj has joined #ocaml
andreas_ has joined #ocaml
jnavila has joined #ocaml
dtornabene has quit [Remote host closed the connection]
dtornabene has joined #ocaml
dtornabene has quit [Remote host closed the connection]
dtornabene has joined #ocaml
Simn has quit [Ping timeout: 255 seconds]
Simn has joined #ocaml
jnavila has quit [Ping timeout: 255 seconds]
raphaelss has quit [Quit: leaving]
ontologiae has joined #ocaml
oschwald has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
dtornabene has joined #ocaml
shinnya has quit [Ping timeout: 255 seconds]
malc_ has joined #ocaml
FreeBirdLjj has quit [Read error: Connection timed out]
FreeBirdLjj has joined #ocaml
jnavila has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
jnavila has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
chelfi has quit [Ping timeout: 260 seconds]
kyod has quit [Ping timeout: 240 seconds]
chelfi has joined #ocaml
argent_smith1 has joined #ocaml
kyod has joined #ocaml
<pitastrudl> hi, im doing an assigment, and im almost done with it but im having one problem, in my class, the initializer does not want to detect that the method of an input class is not being recognized
<pitastrudl> its the last class
<pitastrudl> it errors at the "zena#popravipriimek"
<pitastrudl> i tried specifying that the class argument is (zena : clovek), but no dice
argent_smith has quit [Ping timeout: 255 seconds]
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 260 seconds]
<pitastrudl> nevermind, declared moz and zena the wrong type
<octachron> pitastrudl, an OCaml assignment about the object system? That is not that frequent
<pitastrudl> indeed, the semester class takes a look at all three language types
<pitastrudl> and uses ocaml for that
<Drup> Interesting. ocaml's OO is a bit different than other more traditional OO
rwmjones has quit [Ping timeout: 255 seconds]
rwmjones has joined #ocaml
jlam has joined #ocaml
barcabuona has quit [Quit: WeeChat 1.8]
jlam_ has quit [Ping timeout: 258 seconds]
Simn has quit [Read error: Connection reset by peer]
<flux> certainly. I wish it received some love as well. ie. painless recursion among types and classes..
jnavila has quit [Ping timeout: 255 seconds]
<flux> and just maybe a mechanism for doing dynamic casting :-)
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
jlam has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
<pitastrudl> im pulling my hair out with the String.sub
<pitastrudl> every argumetn evaluates to the right value
<pitastrudl> yet String.sub is giving me an invalid argument
<octachron> flux, to tell the truth I am bit worried that separation of the class language from the rest of the language pushes its maintenance cost a little too far.
<pitastrudl> 104-110
<pitastrudl> first arg is a strng, second is an int and the third is an int
jnavila has joined #ocaml
<octachron> flux, case in point the "let open M in … " feature that is not avalaible inside class definitions due to lack of man power
<pitastrudl> String.sub "kekec" 0 5 works w/o problems
<octachron> pitastrudl, possible pitfall: the third argument of sub is the lenght of the substring not the end position
<pitastrudl> of the substring?
<pitastrudl> ohhhh
<pitastrudl> wow
<pitastrudl> how did i miss that, hm
<pitastrudl> yeah i was trying to get the surname of a full name
<pitastrudl> so i thought the "len" was the last index or the length
<pitastrudl> i guess for "len" i could then use the (len - i)
<pitastrudl> quick and easy
<flux> octachron, yes, omissions like that are a bit sad
<flux> I doubt it would be a lot of work, but someone just forgot it?
fraggle-boate has joined #ocaml
fraggle-boate has quit [Read error: Connection reset by peer]
<octachron> pitastrudl, note that the labelled version of the stdlib is clearer here : http://caml.inria.fr/pub/docs/manual-ocaml/libref/StringLabels.html#VALsub
hashpuppy has joined #ocaml
agravier has joined #ocaml
<octachron> flux, well there is an open mantis ticked on the subject. So it is a more a problem of finding someone interested and knowledgeable enough to implement it
<hashpuppy> (i have no idea what i'm doing). i was watching this video about ocaml and they showed something like this Connection module: https://gist.github.com/anonymous/93e86d5c60b277729cfa6227e37c055a
<hashpuppy> i'm not sure i'm creating it correctly in App, but ...
<octachron> flux, for instance, I would be much more interested in an local open at the type level
<hashpuppy> is there a way to access session_id without pattern matching?
<hashpuppy> i don't see the point of separating out wehn_initialized, session_id, and when_disconnected into their own variants if you can't
<hashpuppy> because these variants are a transition
<hashpuppy> for example, after you go from connecting to connected, you may still want to access when_initialized
<octachron> hashpuppy, I am not sure what you are asking, but if you have a value "x" of type connected, you can access the field session_id with "x.session_id"
<hashpuppy> i'm saying let's say i have connection of type Connection.t. i want to access connection.state.when_initialized
<hashpuppy> i guess that wouldn't make sense
<hashpuppy> i don't think this example makes sense
<hashpuppy> when_initialized and when_disconnected should be moved to type t
<hashpuppy> if you ever want to access those at any state, right?
<hashpuppy> i just think it's a bad example
<hashpuppy> and want to make sure i'm not missing something
shinnya has joined #ocaml
<octachron> hashpuppy, you are right that you cannot access when_initialized when state has for value (Connected …)
<pitastrudl> octachron: yes i was looking at that
<pitastrudl> also i have solved all of it :D
<octachron> hashpuppy, well you could not have an "when_disconnected" information if you are in the connecting state, would you?
<octachron> hashpuppy, on the other hand, it would make sense to integrate the "when_iniated" field in the type t itself
Soni has quit [Quit: Leaving]
<hashpuppy> correct. and i agree. i think when_initiated would be better as something like, option int, right?
<hashpuppy> ohhh
<hashpuppy> nm
ziyourenxiang has quit [Ping timeout: 272 seconds]
kamog has joined #ocaml
Soni has joined #ocaml
colonelj has quit [Quit: leaving]
jbrown has joined #ocaml
cbot has joined #ocaml
jlam is now known as Guest98690
jlam__ is now known as jlam
Guest98690 has quit [Killed (adams.freenode.net (Nickname regained by services))]
jlam_ has joined #ocaml
ygrek__ has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Soni has quit [Ping timeout: 240 seconds]
rpg has quit [Ping timeout: 255 seconds]
Soni has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Xadnem has joined #ocaml
TheLemonMan has joined #ocaml
raphaelss has joined #ocaml
KeyJoo has joined #ocaml
raphaelss has quit [Quit: leaving]
raphaelss has joined #ocaml
tane has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
kakadu has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
kmerz has joined #ocaml
olibjerd has quit [Quit: olibjerd]
olibjerd has joined #ocaml
malc_ has quit [Remote host closed the connection]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
tane has quit [Quit: Leaving]
olibjerd has quit [Quit: olibjerd]
whoman has joined #ocaml
foo30303 has joined #ocaml
foo30303 has quit [Changing host]
foo30303 has joined #ocaml
kakadu has quit [Remote host closed the connection]
foo30303 has quit [Client Quit]
Xadnem has quit [Quit: leaving]
matthewhill has joined #ocaml
matthewhill has quit [Client Quit]
argent_smith1 has quit [Quit: Leaving.]
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 255 seconds]
pierpa has joined #ocaml
average has quit [Ping timeout: 245 seconds]
average has joined #ocaml
whoman has quit [Ping timeout: 258 seconds]
seangrove has joined #ocaml
ygrek__ has quit [Ping timeout: 268 seconds]
whoman has joined #ocaml