using static narrow methods instead of %extended ones.
now it looks more natural and similar to the CORBA downcasting mechanism. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6d30946aa4
commit
a152fd46a8
4 changed files with 56 additions and 37 deletions
|
|
@ -13,10 +13,10 @@ raise RuntimeError if d.get != dc.get
|
|||
raise RuntimeError if i.get != ic.get
|
||||
|
||||
#
|
||||
# dynamic cast working ('nnumber' returns a NNumber)
|
||||
# 'narrowing' working ('nnumber' returns a NNumber)
|
||||
#
|
||||
ddc = Virtual_poly.NDouble_dynamic_cast(dc.nnumber)
|
||||
ddc = Virtual_poly::NDouble.narrow(dc.nnumber)
|
||||
raise RuntimeError if d.get != ddc.get
|
||||
|
||||
dic = Virtual_poly.NInt_dynamic_cast(ic.nnumber)
|
||||
dic = Virtual_poly::NInt.narrow(ic.nnumber)
|
||||
raise RuntimeError if i.get != dic.get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue