anonym | Anmelden | Neues Konto anmelden | 2022-08-15 04:04 UTC |
Startseite | Übersicht | Probleme anzeigen | Änderungsprotokoll | Roadmap | Dokumentation | Konto |
Einfache Problemansicht anzeigen [ Zu Notizen wechseln ] | [ erweiterte Anzeige ] [ Problem-Historie ] [ Drucken ] | ||||||
ID | Kategorie | Auswirkung | Reproduzierbar | Meldungsdatum | Letzte Aktualisierung | ||
0000049 | [Bolt] general | kleinerer Fehler | immer | 2009-12-17 13:11 | 2009-12-17 20:13 | ||
Reporter | art1 | Anzeigestatus | öffentlich | ||||
Bearbeitung durch | |||||||
Priorität | normal | Lösung | erledigt | ||||
Status | geschlossen | Produktversion | 1.0-beta | ||||
Zusammenfassung | 0000049: Bug or Feature in Bolt? Error if computed string in "LOG s LEVEL..." | ||||||
Beschreibung |
Hello Xavier, I want to use your bolt-library to have access to log4ocaml-functionality. In my code I use as an example this line: LOG (Printf.sprintf "walker: processing sdnumber: %s\n" s) LEVEL INFO; But the compiler means that would be wrong: File "main_layout.ml", line 37, characters 14-15: Parse error: [expr level ;] expected after "in" (in [expr]) Preprocessor error I compiled this with "ocamlopt.opt -pp "camlp4o $(BOLT) -level INFO" If I replace the line with: LOG "walker" LEVEL INFO; the compiler is happy and the binary will be created (and works as expected). If I am wrong, could you explain me this behaviour, please? Thanks in advance, Bye Andreas |
||||||
Zusätzliche Information | |||||||
Tags | Keine Tags zugeordnet. | ||||||
Angehängte Dateien | |||||||
|
Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |