public enum SystemConstants
{
SystemTypeDocument,
ApplicationTypeDocument
}
public interface ISystemBaseObject
{
SystemConstants SystemType();
}
public class ExploreMockExample
{
ISystemBaseObject systemBaseObject;
public ExploreMockExample(ISystemBaseObject systemO
我现在选择的Objective-J Cappuccino开发编辑器是Sublime Text 2。不幸的是,我还没有找到一个Objective-J智能感知自动完成插件。它看起来应该是可行的,因为Objective-J确实有(可选/可插拔)类型。所以我认为一个插件绝对可以解析代码来找到你想要自动补全的对象的预期类型,然后查找它的方法列表。有没有人知道有其他编辑器支持Objective-J的智能感知?
如何将智能ptr传递给引用指针作为参数的函数?
smart_ptr<T> val; // I have this smart pointer
// And I want to pass it to this function, so that this function will fill the smart pointer with proper value
void Foo(T*& sth)
{
sth = memoryAddress;
}
编辑现在我明白了。谢谢各位给出的答案!