Displaying 3 results from an estimated 3 matches for "attrb1".
Did you mean:
attr1
2013 Apr 25
1
[LLVMdev] Dynamic Type Lookup ...
Thanks for your feedback David....
Yes, the intention is to support duck-typing. In my code example,
a.attrB1 = 5 .... is probably more accurately stated as .....
a. attr1.attrB1 = 5
Certainly this would be an unsafe call because we would not know that attrB1
is an attribute of attr1 until runtime. I believe this type of call is
valid in a language like Python.
Are there any references out t...
2013 Apr 24
3
[LLVMdev] Dynamic Type Lookup ...
Hello everyone, I would like to implement functionality something like the
following in my sample language.....
class A {
Object attrA1
}
class B {
int attrB1
bool method methTestB ( .... )
}
main () {
bool test
Object a
a = new Class A()
a.attr1 = new Class B()
a.attrB1 = 5
test = a.methTestB(...)
}
I assume that I will need:
- some type of runtime lookup table to store the class structure of Class A
and B.
- some way of encoding and...
2013 Apr 25
0
[LLVMdev] Dynamic Type Lookup ...
On 24 Apr 2013, at 23:13, Frank White <frankwhite1003 at gmail.com> wrote:
> Hello everyone, I would like to implement functionality something like the following in my sample language.....
>
{snipped not very informative C++ pseudocode.}
> I assume that I will need:
>
> - some type of runtime lookup table to store the class structure of Class A and B.
That depends on