View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000039 | Ecere SDK | compiler | public | 2008-04-25 15:15 | 2014-07-11 18:51 |
Reporter | jerome | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Target Version | 0.46 eC II | ||||
Summary | 0000039: Getting Virtual Methods IDs | ||||
Description | Provide a way to call typed_object:: virtual methods, by obtaining the virtual method id. Proposed Syntax: ---- type._vTbl[vmethod_id(class::OnFree)](type, rowData); ---- New Proposed Syntax: vmethod(type, OnFree)(rowData) Current Example: type._vTbl[__ecereVMethodID_class_OnFree](type, rowData); Currently the following dummy code must be used to ensure the identifier ecereVMethodID_class_OnFree is defined default: extern int __ecereVMethodID_class_OnFree; static void UnusedFunction() { int a; a.OnFree(); } private: | ||||
Tags | No tags attached. | ||||
has duplicate | 0000383 | new | Getting Virtual Methods IDs |
|
How about: vmethod(type, OnFree)(type, rowData) vmethod(type, SomeClass::SomeMethod)(type, bla) subclass(SomeClass) type; vmethod(type, SomeMethod)(type, bla) vmethod(type, SomeMethod)(bla) Other example: type._vTbl[__ecereVMethodID_class_OnGetString](type, &value.c, buffer, null, &needClass); can simply become: vmethod(type, OnGetString)(&value.c, buffer, &needClass) |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-04-25 15:15 | jerome | New Issue | |
2008-04-25 15:16 | jerome | Project | @1@ => @2@ |
2008-04-25 15:17 | jerome | Status | new => assigned |
2008-04-25 15:17 | jerome | Assigned To | => jerome |
2010-07-26 12:25 | jerome | Relationship added | child of 0000437 |
2010-07-29 15:18 | jerome | Priority | normal => urgent |
2012-03-08 16:51 | redj | Target Version | => 0.45 Ginkakuji |
2012-03-08 19:21 | redj | Relationship deleted | child of 0000437 |
2012-03-29 07:50 | redj | Category | => eC Compiling Tools |
2012-03-29 07:50 | redj | Project | @2@ => Ecere SDK |
2013-01-17 02:20 | jerome | Note Added: 0000663 | |
2013-01-17 02:22 | jerome | Description Updated | |
2013-04-24 20:36 | jerome | Status | assigned => new |
2013-04-24 20:38 | jerome | Assigned To | jerome => |
2013-09-18 00:33 | jerome | Relationship added | has duplicate 0000383 |
2014-07-11 18:51 | jerome | Target Version | 0.45 Ginkakuji => 0.46 eC II |