@mayrel:
>>maintain an array of BufferClass objects?
no - i don't want to hold an array - that's the point !
i'd like to have the class instanced via:
BufferClass *MyBuffer = new BufferClass( 100 );
and then to access each element of the buffer via MyBuffer[x].
you are right, yes !
@Yratelev:
>>but the idea is 2 arguments, not just int?
mmh....dunno, to be honest - are the the parameters of "
MyBuffer[25] = 10
"
handled as the two parameters of the operator [] ?
sorry, i haven't stepped so deep into operator-overloading. so i may seem a bit "unhelped"
DJSnow
---
this post is manually created and therefore legally valid without a signature
[edited by - DJSnow on January 23, 2004 3:40:19 PM]
DJSnow---this post is manually created and therefore legally valid without a signature