<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Näwe pisze:
<blockquote
cite="mid:84FD9808A65CDF4C959FDB41FC3D134CBC47610D@MSSRVS4.atlas.de"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:omniorb-list-bounces@omniorb-support.com">omniorb-list-bounces@omniorb-support.com</a>
[<a class="moz-txt-link-freetext" href="mailto:omniorb-list-bounces@omniorb-support.com">mailto:omniorb-list-bounces@omniorb-support.com</a>] On Behalf
Of Clarke Brunt
Sent: Thursday, March 05, 2009 3:07 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>
Subject: RE: [omniORB] abstract class
</pre>
<blockquote type="cite">
<pre wrap="">My omniidl gives me the following declarations for the _get/_set
</pre>
</blockquote>
<pre wrap="">functions:
</pre>
<blockquote type="cite">
<pre wrap=""> virtual ::CORBA::Char get_char(::CORBA::UShort index) = 0;
virtual ::CORBA::Double get_double(::CORBA::UShort index) = 0;
virtual void set_char(::CORBA::Char c, ::CORBA::UShort
</pre>
</blockquote>
<pre wrap="">index) = 0;
</pre>
<blockquote type="cite">
<pre wrap=""> virtual void set_double(::CORBA::Double d,
</pre>
</blockquote>
<pre wrap="">::CORBA::UShort index) = 0;
</pre>
<blockquote type="cite">
<pre wrap="">
Look Ma, no underscores!
</pre>
</blockquote>
<pre wrap="">Well spotted! Those underscores evidently escaped the eyes of
both myself
and Wernke. The original poster solved the problem (either by getting
omniidl to generate the examples, or by examining the
definitions in the
generated header), but didn't actually say it was that was
wrong before.
Some compilers/linkers add underscores, don't they? I wonder
if perhaps some
previous error messages included the '_', and caused confusion.
</pre>
</blockquote>
<pre wrap=""><!---->
I just read the CORBA Spec (CORBA-3.0-04-03-12.pdf). It says in §3.2.3.1:
<quote>
...
To minimize the amount of work, users may lexically “escape” identifiers by
prepending an underscore (_) to an identifier. This is a purely lexical convention that
ONLY turns off keyword checking. The resulting identifier follows all the other rules
for identifier processing. For example, the identifier _AnIdentifier is treated as if it
were AnIdentifier.
The following is a non-exclusive list of implications of these rules:
• The underscore does not appear in the Interface Repository.
• The underscore is not used in the DII and DSI.
• The underscore is not transmitted over “the wire.”
• Case sensitivity rules are applied to the identifier after stripping off the leading
underscore.
For example:
module M {
interface thing {
attribute boolean abstract; // error: abstract collides with
// keyword abstract
attribute boolean _abstract; // ok: abstract is an identifier
};
};
...
</quote>
Everything explained...
Stefan
_______________________________________________
omniORB-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a>
<a class="moz-txt-link-freetext" href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a>
__________ NOD32 Informacje 3910 (20090305) __________
Wiadomosc zostala sprawdzona przez System Antywirusowy NOD32
<a class="moz-txt-link-freetext" href="http://www.nod32.com">http://www.nod32.com</a> lub <a class="moz-txt-link-freetext" href="http://www.nod32.pl">http://www.nod32.pl</a>
</pre>
</blockquote>
Finally I do not know, if there were those underscores or wrong data
types, because I desperately <span class="moz-smiley-s3"><span> ;-) </span></span>tested
<u>all</u> ideas that came into mine or compiler's (IntelliSense) mind.
Anyway, I did not know about specification mentioning this neither and
next time I'll remember this.<br>
Thanks again Stefan and Clarke.<br>
Regards<br>
Marek<br>
</body>
</html>