[DGD] Clarifying private and static function classes

Matt Tolton matt at tolton.com
Fri Jul 3 13:25:43 CEST 2009


Hi,

I've been unable to find any documentation on what private and static
mean when applied to functions in DGD.  Based on my experimentation:

private -> not virtual, not callable via call_other or by any subclasses
static -> not callable via call_other, can use it to create a "pure
virtual" function with prototype in inheritable

Based on this, it wouldn't ever make sense to declare a function both
private and static.

This seems to differ from other LPC dialects [1], where private does
not protect against call_other.

Can someone please confirm my findings or fill in any missing or
incorrect information?

Thanks,
Matt

1. http://www.mars.org/home/rob/docs/IntermediateLPC/chapter6.html



More information about the DGD mailing list