Now you're talking a language ~i~ don't understand too well, C++ classes.
:>.

Fulvio wrote:
> I'll try to explain myself with an example.
> 
> The interface:
> class iDatabase
> {
> ....
>     std::string getFilename() const;
> ....
> };
> iDatabase* getDB(int i);
> 
> The changed sc_base_filename:
> int sc_base_filename (ClientData cd, Tcl_Interp * ti, int
> argc, const char **argv)
> {
>   int baseNum = 0;    
>   if (argc > 2) baseNum = strGetInteger (argv[2]);
>   iDatabase* basePtr = getDB(baseNum);
>   if (basePtr == 0) return errorResult (ti, "Invalid database number.");
>   Tcl_AppendResult (ti, basePtr->getFilename().c_str(), NULL);
>   return TCL_OK;
> }



      
__________________________________________________________________________________
Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for 
free at PLUS7. www.tv.yahoo.com.au/plus7

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to