[
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: | Shishir Ramam <sramam@g...> |
| Subject: | [Caml-list] CamlIdl possible issue |
Hi,
I am trying to use CamlIdl (Ocaml 3.07+2 win32) and have this case in which
I understand what is happening, not sure why it has been implemented thus.
For the following structure, when SOME_VAR is *not* defined,
---
struct my_test {
int x;
#ifdef SOME_VAR
int y;
#endif
};
---
CamlIdl converts this to
---
let my_test = int
---
This is because a structure with one element is getting special attention in
Struct.ml_declaration.
Knowing very little about the MIDL specification, I attempted to run this
against a MIDL compiler for the following result -
---
struct my_test
{
int x;
};
---
It seems that the special casing of the single element is not the best of
things for my application, since any reference to the element x will have to be
modified in the Ocaml program depending on whether SOME_VAR is defined or not.
IMHO this seems like a bug. Was wondering if there is some other explanation
for this.
Thanks in advance for any help.
-shishir
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners