[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Johann Spies <jspies@m...> |
| Subject: | [Caml-list] Printf.sprintf ? |
Can somebody please explain this to me:
This works as expected:
# let s = Printf.sprintf "%s" "enigiets";;
val s : string = "enigiets"
But this not:
# let q = "%s";;
val q : string = "%s"
# let s = Printf.sprintf q "enigiets";;
Characters 23-24:
This expression has type string but is here used with type
(string -> 'a, unit, string) format
Why?
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"Praying always with all prayer and supplication in the
Spirit, and watching thereunto with all perseverance
and supplication for all saints." Ephesians 6:18
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr