Re: [sv-ec] class property lifetimes

From: Steven Sharp <sharp_at_.....>
Date: Tue Jan 20 2009 - 11:29:39 PST
I don't think it is really appropriate to have class properties declared
as automatic.  They are either static, or not static.  If they are not
static, they are allocated dynamically in the class object, not in a stack
frame like automatics.  But I suppose you could think of them as being
allocated "automatically" by new, instead of by entering their scope.
At any rate, I don't think there would be any problem with allowing an
explicit "automatic" to mean nonstatic.  Does C++ allow auto to be used
on a class property?

On the second question, I don't think there is any distinction for a class
property between a class qualifier of static and a lifetime of static.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jan 20 11:32:13 2009

This archive was generated by hypermail 2.1.8 : Tue Jan 20 2009 - 11:33:01 PST