[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Overloaded virtuals
From:       rik () kde ! org
Date:       2000-06-15 0:14:28
[Download RAW message or body]

#if Stephan Kulow
> And how would you assign something to it? My C++ book says, you can only
> assign to references once.

There's a difference between _assigning_ to the reference (which _is_ the
reference) and _attaching_ a reference to a referent.

myFunction(QString & s = const_cast<QString>(QString::null))

Here, you are not attaching s to QString::null, you are assigning the value of
QString::null to s.

Rik

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic