search for: static_list

Displaying 3 results from an estimated 3 matches for "static_list".

Did you mean: static_cast
2020 Sep 30
2
Creating a global variable for a struct array
Let me clarify my question. I have a struct array h1 as follows: dhash h1[10]; I want to get a Constant* to variable h1. It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this. My question is how to get the second argument of type ArrayRef<Constant *> from the above variable h1. Thanks, Chaitra ________________________________ From: Tim Northover
2020 Oct 01
2
Creating a global variable for a struct array
...an you want to create a GlobalVariable "h1" with a Constant* initializer? If so, we need to know what you want to initialize it to. Writing IR for dhash h1[10] = {0}; would be very different from dlist static_lst = {1, 5, NULL}; dhash h1[10] = {{"myfile.txt", &static_list}, 0 }; > It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this. It would be involved in the second example above, but because h1 is an array you'd need a whole ContantArray of them. > My question is how to get the second argument of type ArrayR...
2006 Apr 03
5
Is old school STI broken? How would you do the same now?
So this new STI :through thing is still not clear to me. I have a project now where I''m using this: class List < ActiveRecord::Base belongs_to :user end class StaticList < List has_and_belongs_to_many :items end In the script/console: >> StaticList.create NameError: uninitialized constant StaticList What? ok, fine. So a List.create would be in