30 Sep 20:35
Re: Clarified references, shortcut notation
Slawomir Lisznianski <slisznianski <at> c2-lang.org>
2004-09-30 18:35:13 GMT
2004-09-30 18:35:13 GMT
edA-qa wrote:
> Okay, looking at the types more and more I get a clear picture of how
> they all related to each other and their usage. I will try to give that
> picture here.
Looks good. Only one question.. If we followed the C++ rules of
initialization of local objects, then any uninitialized, non-static,
local references would not be bound to null. For example:
void fun()
{
T static^ t0;
T^ t1 = null;
T^ t2;
if ( @t0 || @t1 ) // ok: evaluates to false
if ( @t2 ) // undefined: t2 used but uninitialized
}
Above, t0 and t1 are bound to null. t2 reference is of indeterminate
initial value.
--
--
Slawomir Lisznianski
C2 Language Group Principal (http://c2-lang.org)
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
RSS Feed