Computer Science Canada Anonamously referencing procedures within a class  | 
  
| Author: | TheOneTrueGod [ Thu Jun 08, 2006 4:36 pm ] | ||||
| Post subject: | Anonamously referencing procedures within a class | ||||
I don't know if I used the terminology right there, but eh. 
 Allright, now if I wanted to anonamously reference that procedure, is there any way to go about doing that? 
 Is there any possible way to do this? I've tried creating a pointer to the class, and assigning q to the procedure that way, but it didn't work...  | 
	|||||
| Author: | HellblazerX [ Thu Jun 08, 2006 4:42 pm ] | 
| Post subject: | |
I understand what you're asking. I believe what you're looking for is an abstract class, or an abstract procedure, however, since I've never looked into Turing classes, I'm not sure if they exist in Turing.  | 
	|
| Author: | Cervantes [ Thu Jun 08, 2006 5:11 pm ] | 
| Post subject: | |
No, you can't do that. The reason being that those procedures only exist for instances of the Stuff class, not for the class itself. What you're looking for is a module.  | 
	|
| Author: | TheOneTrueGod [ Thu Jun 08, 2006 5:48 pm ] | 
| Post subject: | |
Darn. Thanks for your help man. A module wouldn't be useful in the instance I was asking this about. (Unfortunately, I forgot the instance  | 
	|