TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: TIM HUTZLER
date: 1998-04-01 22:02:00
subject: overloaded[][]

Hi y'all;
I want to overload the '[' to facillitate 2-dimentional arrays, ie.
thisVal = table[x][y];
Since 'table' is dynamically allocated, stactic subscripting does not
work here. Overloading a single subscript is easy, but two...???
Who knows how this can be done?
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.