On Tuesday 29 October 2002 13:29, [EMAIL PROTECTED] wrote:
> On Sun, Oct 27, 2002 at 02:31:47AM -0500
>
> "Forest C. Adcock" <[EMAIL PROTECTED]> wrote:
> > is there a command to switch workspaces from the commant line for
> > Blackbox?
>
> I wrote a simple program to do this for me.
>
> See attachment.
>
> Compile it using:
>   g++ bbchdsktp.cc -L/usr/X11R6/lib -lX11 -o bbchdsktp
>   strip bbchdsktp

since I hope to see more end user programs here I thought I would send this 
code comment to the list rather than just private mail.

It makes *zero* sense to pass an int by reference unless you plan to change it 
in the function.  The whole point of references is to avoid copy constructors 
for user defined classes.  Since both a reference and an int need the same 
amount of storage there is no gain here and likely just a little performance 
loss.

The same goes for pointers.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to