cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

namespaces and classes should respect hidden variables

I think it'd be swell if namespaces and classes (really everything) allowed hidden variables.  Currently if I put a hidden/private variable in a class or namespace and show namespaces or classes, it's visible. 

 

delete symbols();
ns = New Namespace(
	"some space",
	{
		__test = 14 ; a = 12 ; __test2 = 14 ;
	}
);

c = Define Class(
	"Test",  
	{
		a = 0;
		b = 0;
		_init_ = Method({a, b}, 
			a = a;
			b = b;
		);
		nObs = 20 ; 
		addition = Method( {x, y},
			(x + y) * nObs
		); 
		append = Method( {a, b},
			Char( a ) || " + " || Char( b )
		);
		__private = 22;
	}
);

__test = 14;
Show Symbols();
show namespaces();
show classes();
1 Comment
Ryan_Gilmore
Community Manager
Status changed to: Archived
We are archiving this request. If this is still important please comment with additional details and we will reopen. Thank you!