Displaying 5 results from an estimated 5 matches for "my_constant".
2016 May 06
3
RFC: metadata attachments for global variables
...:
>>> - because the compile unit could contain definitions for an enum that is useful during expression evaluation
>
> Do we need to preserve an enum type that is not used anywhere in the program? (i.e. we dropped all functions that were using it)
Yes, to support code like:
enum {
MY_CONSTANT = 42;
};
int i = MY_CONSTANT;
>
>>> - because it contains constants that are useful (XNU for example has this version.c file: http://opensource.apple.com/source/xnu/xnu-1456.1.26/config/version.c).
>
> Is it a feature that we need to keep the debug info for a constant global e...
2008 Jan 24
1
Constant definition matcher
Hello all,
I need to specify that a class should define a constant.
I couldn''t find something such as "should define_const(''MY_CONST'')" in
the RSpec documentation, even though there are similar matchers such
as "should respond_to".
I know I can write the matcher myself (that wouldn''t be so difficult)
but is there a reason ?
Thanks!
2017 Feb 04
2
DWARF: Should type units be referenced by signature or declaration?
Bunch of initially unrelated context:
* type units can be referenced in a variety of ways:
* DW_FORM_ref_sig8 on any attribute needing to reference the type
* DW_AT_signature on a declaration of the type
* extra wrinkle: the declaration can be nested into the appropriate
namespace and given a name, or not
* LLVM always does the "most expressive"/expensive thing: a full
2016 May 06
2
RFC: metadata attachments for global variables
> On May 6, 2016, at 3:48 PM, Adrian Prantl via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>>
>> On May 6, 2016, at 3:40 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>>
>>
>>> On May 6, 2016, at 3:17 PM, Adrian Prantl <aprantl at apple.com> wrote:
>>>
>>>
>>>> On May 6, 2016, at 1:17 PM, Peter
2009 Apr 08
4
Having trouble extending a class from a Rails plugin
I have class in a plugin that I want to crack open and add some
functionality to for a particular application. So, I created a file by
the same name as the class in my app/models folder and added some
methods to the class, but, I can''t seem to get Rails (2.2.2) to pick-up
the extended definition.
I did find while trying to debug the problem that if I paste the
extended definition into,