Naked has quit [Read error: 54 (Connection reset by peer)]
Naked has joined #ocaml
Naked is now known as Hadaka
_fab has joined #ocaml
CosmicRay has joined #ocaml
<z|away>
nm. Figured it out..
<mflux>
what would be efficient means to enable/disable debug output?
<mflux>
ie. when disabled they would preferably have zero impact on performance
GreyLensman has quit ["Leaving"]
<mflux>
and compile time switch is perfectly sufficient
<mflux>
hmh, suitable that is
mfurr has joined #ocaml
z|away has left #ocaml []
CosmicRay has quit [No route to host]
ithkuil has joined #ocaml
<ithkuil>
hello
<ithkuil>
when i try to Printf.sprintf fmt 8;; it tells me This expression has type string but is here used with type ('a, unit, string) format = ('a, unit, string, string) format4
<ithkuil>
with fmt = "%04X"
<Riastradh>
That's because fmt is of type string, but that's not the type sprintf wants.
<Riastradh>
When you type 'Printf.sprintf "%04X" 8', "%04X" doesn't actually get the type string; it is assigned a peculiar type particular to Printf.
<ithkuil>
ok
<ithkuil>
that sucks
<ithkuil>
why cant it just be a string that would be more useful
<ithkuil>
is there a way to construct that special type
<ronwalf>
That's weird, is this specific to the printf module?
<ithkuil>
this font is boring me
<smimou>
ithkuil: typing, typing...
<smimou>
how would you do this in a type-safe manner if it was only a string
<smimou>
?
<ithkuil>
oh
<ithkuil>
so there isnt a way to construct that special type
zigong_ has quit ["Leaving"]
<smimou>
yes there is
<smimou>
format_of_string
<ithkuil>
oh beautiful
<ithkuil>
thank you so much
<smimou>
not much
CosmicRay has joined #ocaml
Shammah has joined #ocaml
Shammah has quit [Read error: 110 (Connection timed out)]
ithkuil has quit []
zigong__ has joined #ocaml
zigong__ has quit [Read error: 104 (Connection reset by peer)]
zigong_ has joined #ocaml
gim has quit ["a+"]
smimou has quit ["?"]
skylan_ has joined #ocaml
CosmicRay has quit [Read error: 113 (No route to host)]