View Issue Details

IDProjectCategoryView StatusLast Update
0000039Ecere SDKcompilerpublic2014-07-11 18:51
Reporterjerome Assigned To 
PriorityurgentSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Target Version0.46 eC II 
Summary0000039: Getting Virtual Methods IDs
DescriptionProvide 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:
TagsNo tags attached.

Relationships

has duplicate 0000383 new Getting Virtual Methods IDs 

Activities

jerome

2013-01-17 02:20

administrator   ~0000663

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)

Issue History

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