mfurr changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
Sonarman has quit [Read error: 110 (Connection timed out)]
matt__ has joined #ocaml
matt__ is now known as Sonarman
malc_ has joined #ocaml
malc_ has quit ["leaving"]
smimou has quit ["?"]
mattam has quit [Read error: 110 (Connection timed out)]
xol has joined #ocaml
xol has quit ["banana"]
mlh_ has joined #ocaml
monochrom has joined #ocaml
gruevy has joined #ocaml
Sonarman_ has joined #ocaml
gruevy has quit ["ERC Version 5.0.1 $Revision: 1.726.2.3 $ (IRC client for Emacs)"]
Sonarman has quit [Read error: 110 (Connection timed out)]
stef_ has joined #ocaml
cognominal has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has quit ["Client exiting"]
monochrom has quit ["What is the meaning of "meaning"?"]
Smerdyakov has joined #ocaml
mlh_ is now known as mlh
mlh has quit ["brb"]
mlh has joined #ocaml
mlh has quit [Client Quit]
mlh has joined #ocaml
cmeme has quit [Network is unreachable]
<mflux> nutssh, yeah, but I can tell lexbuf to flush its input, and I manage the buffer it can all be managed..
<mflux> however I dropped that approach already ;)
<Nutssh> ok.
Sonarman_ has quit ["leaving"]
Skal has joined #ocaml
vezenchio has joined #ocaml
budjet has joined #ocaml
zzorn has joined #ocaml
bunnie has joined #ocaml
<bunnie> hello
<det> hi
Skal_ has joined #ocaml
budjet has quit [Remote closed the connection]
Skal has quit [Read error: 110 (Connection timed out)]
bunnie has quit ["Client Exiting"]
smimou has joined #ocaml
mattam has joined #ocaml
_JusSx_ has joined #ocaml
Gueben has joined #ocaml
mlh has quit [Client Quit]
cjohnson has joined #ocaml
Skal_ has quit [Remote closed the connection]
_fab has joined #ocaml
cjohnson has quit ["banana"]
jeff2 has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
vodka-goo has joined #ocaml
Gueben has quit ["Leaving"]
Gueben has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Msandin has joined #ocaml
tautologico has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
pango__ has joined #ocaml
<Msandin> Tywith now supports function types as well as can be expected, types located in different modules remain problematic, a design is not clear.
pango_ has quit [Read error: 110 (Connection timed out)]
cjohnson has quit ["banana"]
_fab has quit [Remote closed the connection]
_JusSx__ has joined #ocaml
Snark has joined #ocaml
_JusSx_ has quit [Read error: 110 (Connection timed out)]
Msandin has quit [Read error: 104 (Connection reset by peer)]
Skal has joined #ocaml
Skal has quit [Read error: 104 (Connection reset by peer)]
Sonarman has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
Skal has joined #ocaml
<_JusSx__> what does mean '!'?
<smimou> it means : get the value "pointed" by a reference
<smimou> # let a = ref 3;;
<smimou> val a : int ref = {contents = 3}
<smimou> # !a;;
<smimou> - : int = 3
<_JusSx__> ok thanx
<_JusSx__> ! Dereferencing (return the current contents of a reference).
<smimou> yes that's it
<_JusSx__> i don't need this ;)
gim has quit [Read error: 113 (No route to host)]
<mflux> hmm.. how would I make a printf-like function that would do the outputting with my routines?
<mflux> that is, replace something like foo (Printf.sprintf "%d %s" 42 "bar") with foo_print "%d %s" 42 "bar"
<_JusSx__> i don't know
<vegai> you'll need to parse the first string and so forth?
<mflux> well 'so forth' doesn't seem quote straight-forward either, but I suppose I could copy the printf implementation and go from there
<mflux> or maybe avoid the problem alltogether and always write foo (...) :(
<Smerdyakov> vegai, that's not how format strings work in OCaml.
<Smerdyakov> vegai, the compiler parses them into values of a special type, at compile time.
<vegai> oh, right
vezenchio has quit ["I live in a yurt on the steppes of Sheepfuckistan. That's why."]
<smimou> mflux: have a look at format_of_string, etc
<smimou> (in Pervasives)
gim has joined #ocaml
<vegai> hmm
<vegai> # Printf.sprintf;;
<vegai> - : ('a, unit, string) format -> 'a = <fun>
<vegai> what's that unit doing there..
<Smerdyakov> Dunno
<Smerdyakov> The second place seems to give the type of the "thing" being modified by the printing.
<Smerdyakov> sprintf is "functional," so nothing is modified.
Snark has quit [Connection timed out]
<mflux> oops, I had completely missed 'kprintf', which is just for my purpose
<mflux> such as: let foo aux = Printf.kprintf (fun s -> Printf.printf "%s: Printing %s" aux s)
<dan2> hmm
vodka-goo has quit []
_DL_ has quit ["Bye Bye"]
Skal has quit [Read error: 54 (Connection reset by peer)]
mlh has joined #ocaml
mlh_ has joined #ocaml
mlh has quit [Client Quit]
mlh_ has quit [Client Quit]
mlh has joined #ocaml
_fab has joined #ocaml
jacobian has joined #ocaml
_JusSx__ has quit ["leaving"]
mlh has quit [Client Quit]
mlh has joined #ocaml
zzorn has quit ["They are coming to take me away, ha ha"]
__mattam__ has joined #ocaml
humasect has joined #ocaml
Gueben has quit ["Leaving"]
__mattam__ has quit [Client Quit]
mattam has quit ["leaving"]
mattam has joined #ocaml
smimou has quit ["?"]
cjohnson has joined #ocaml
malc_ has joined #ocaml
xol has joined #ocaml
MirrorLynx has joined #ocaml
MirrorLynx has quit [Client Quit]
MirrorLynx has joined #ocaml
dan2 has quit [Read error: 60 (Operation timed out)]
MirrorLynx has quit [Client Quit]
dan2 has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]