search for: ivar

Displaying 20 results from an estimated 154 matches for "ivar".

Did you mean: ivan
2010 Dec 01
2
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...iterator), but I do find the context switching annoying when I have to adjust for the different styles as I move to different parts of the codebase. Just something for you to consider. 2. (more important than #1) I'd like to understand the reason behind your preference for UpperCase names for ivars. Is it just a personal preference or is there a more profound reason? So far, I've heard that some people like lowerCase ivars (clear distinction from types, etc), and some people don't think that helps much. However, I'm yet to hear why UpperCase ivars are considered *better* than...
2010 Dec 01
0
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...o a cleanly separable policy decision that we can make after the more important half of the project happens :). Lets do the more important part first, then come back to this. > 2. (more important than #1) I'd like to understand the reason behind > your preference for UpperCase names for ivars. Is it just a personal > preference or is there a more profound reason? So far, I've heard > that some people like lowerCase ivars (clear distinction from types, > etc), and some people don't think that helps much. However, I'm yet > to hear why UpperCase ivars are consi...
2014 Oct 13
5
[LLVMdev] RFC: variable names
...>> >> class Something { >> bool IsMyConditionTrue; >> >> … >> >> bool isMyConditionTrue() const { return IsMyConditionTrue; } >> } >> >> If you make instance variables be lower camel case, then you get serious >> conflict between ivars and methods. Doing this also deflates some of the >> ammunition used by advocates of _ for ivars :-) >> > > trailing or leading _ for ivars seem to be a common practice. What is the > reason it s not used in LLVM? > [s/ivar/non-static data member/g; we're not using Ob...
2010 Dec 01
3
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...ision that we can make after the more important half of the project happens :).  Lets do the more important part first, then come back to this. I'll buy that. ;-) >> 2. (more important than #1) I'd like to understand the reason behind >> your preference for UpperCase names for ivars.  Is it just a personal >> preference or is there a more profound reason?  So far, I've heard >> that some people like lowerCase ivars (clear distinction from types, >> etc), and some people don't think that helps much.  However, I'm yet >> to hear why UpperCase...
2014 Oct 13
3
[LLVMdev] RFC: variable names
...e wishy-washy statement about instance variables. This is the pattern that I tend to prefer: class Something { bool IsMyConditionTrue; … bool isMyConditionTrue() const { return IsMyConditionTrue; } } If you make instance variables be lower camel case, then you get serious conflict between ivars and methods. Doing this also deflates some of the ammunition used by advocates of _ for ivars :-) -Chris
2011 Jul 06
7
Issue with puppet file serving api not parsing yaml content correctly
...nse.body else raise "server did not return an acceptable reponse code" end # end server response code check else raise "No response from #{server}" end # end nil response check end # end apitruthtag servermd5 = YAML.load(apitruthtag("metadata")).ivars["checksum"] # When executed from a puppet run I tells me that ivars is undefined. - lib -> puppet -> parser -> functions -> truth_tags.rb - manifests -> init.pp ex: class truth inherits truth::init_bootstrap { if truth_tag(''role'', ''base''...
2009 Apr 02
1
problem with svyglm()
...rying to use the function svyglm in the library survey. I create a data survey object: data_svy<- svydesign(id=~PSU, strata=~sample_domain, weights=~sample_weight, data=data, nest=TRUE) and I try to use svyglm() with little success: R<-svyglm(data_svy[,4]~(data_svy[,iCol]==listModality[[iVar]] [iMod]),design=data_svy, family=binomial(link="logit") Error in svyglm.survey.design(data_svy[, 4] ~ (data_svy[, iCol] == listModality[[iVar]][iMod]), : all variables must be in design= argument Puzzlingly the following code works: R<-glm(data[,4]~(data[,iCol]==listMo...
2008 May 17
1
Scope Confusion - Controller iVars in Modules
I''ve created a module to include in a Controller. Basically it works, but I am expecting methods in the module to have access to instance variables from the controller, and that appears to not be the case. Yet, a simple Ruby example says it should be. I''m not sure what''s different. Simple Example: module ShapeStuff def set_type @type =
2005 Feb 14
2
Can't run AGI for outbound call
...swered. I did this a while back (many versions ago). The problem is Asterisk does not seem to know the AGI application. I create a file test.call and place it in the outbound spool directory: the test.call file looks like this: #Simple test call script. #call my NetMeeting client Channel: h323/ivar@192.168.0.153 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: AGI(agi-test.agi) Data: 1234 "agi-test.agi" is under "/usr/share/asterisk/agi-bin" (as configured in asterisk.conf) Here is the output on the console: *CLI> -- Attempting call on h323/ivar@192.168....
2007 Oct 05
11
Session handling busted on Oracle
...the tracker says I''m forbidden, so here you go. The first problem is that the sql to create the sessions table is broken. This is what it tried to send: CREATE TABLE sessions ( id NUMBER(38) NOT NULL PRIMARY KEY (38), --> Problem here hashid VARCHAR2(32), created_at DATE, ivars CLOB DEFAULT empty_clob() ) The problem is that second "(38)" after "PRIMARY KEY". So, I removed that and created the table manually. The next problem was a missing Oracle sequence (which I had no idea was required, but ok). I figured out (by stepping through oci8.rb) that th...
2013 Apr 06
2
[LLVMdev] How to compile object C with clang into llvm IR?
...(return type defaults to 'id') [-Wobjc-method-access] [ a print: "hello" ]; ^ ~~~~~ message-arrays.m:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. 118-165-76-229:CodeGenObjC Jonathan$ clang -emit-llvm -o 1.ll -c ivars.m ivars.m:18:12: warning: class 'R' defined without specifying a base class [-Wobjc-root-class] @interface R { ^ ivars.m:18:13: note: add a super class to fix this problem @interface R { ^ 1 warning generated. On 2013/4/6, at 上午11:05, Tyler Hardin <tghardin...
2007 Nov 24
1
Hmisc: can not reproduce figure 4 of Statistical Tables and Plots using S and LATEX
...#39;Chol (mg/dl)'=chol vars <- with(pbc, c(label(chol), label(bili))) label(y) <- paste(vars, collapse=' and ') # Will make nice caption in table s3 <- summary(y ~ age.groups + ascites, fun=g, data=pbc) s3 windows(width=10.67, height=6.60) par(mfrow=c(1,2), oma=c(3,0,3,0)) for(ivar in 1:2) { isub <- (1:3)+(ivar-1)*3 print(isub) plot(s3, which=isub, main='', xlab=vars[ivar], pch=c(91,16,93)) } mtitle(paste('Quartiles of', label(y)), cex.m=1.5) Could any one help me? Thanks [[alternative HTML version deleted]]
2010 May 05
2
[LLVMdev] How to cast an integer array to an integer pointer? (user question)
...t supplied is: getelementptr inbounds [4 x i8]* @0, i32 0 How to convert the pointer to the array to u8* ? I tried BitCastInst but it inserts an explicit bitcast. I don't think this is right. Yuri // assume BasicBlock *BB, Module *M // global string std::vector<llvm::Constant*> Ivars; Ivars.push_back(llvm::ConstantInt::get(Type::getInt8Ty(Context), 0x41)); Ivars.push_back(llvm::ConstantInt::get(Type::getInt8Ty(Context), 0x42)); Ivars.push_back(llvm::ConstantInt::get(Type::getInt8Ty(Context), 0x43)); Ivars.push_back(llvm::ConstantInt::get(Type::getInt8Ty(Context), 0));...
2006 Nov 03
2
[OT] Markaby trunk and Rails ivars
Can someone explain the new Markaby syntax to me? I''m using Markaby as a Rails plugin, fetched from the trunk. I''m losing my instance variables somehow (@thing is always nil): class ThingsController < ApplicationController def index @thing = "Bacon of the chunky variety" end end # app/views/index.mab h1 { "You should see a thing here:" } p {
2005 Dec 13
1
latest wine on debian stable
...ght direction on how to compile and assemble the latest wine packages on Debian stable? There are dependencies which cannot be met with "stable" (gcc-4). Also, because of wine 0.9.3 dependencies on gcc-4, is it possible to assemble a working package with gcc < 4 ? Thanks in advance, Ivars -------------- next part -------------- A non-text attachment was scrubbed... Name: ivars.strazdins.vcf Type: text/x-vcard Size: 336 bytes Desc: not available Url : http://www.winehq.org/pipermail/wine-users/attachments/20051213/e6726670/ivars.strazdins.vcf
2010 Dec 01
0
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...e after the more important half of the project happens :).  Lets do the more important part first, then come back to this. > > I'll buy that. ;-) > >>> 2. (more important than #1) I'd like to understand the reason behind >>> your preference for UpperCase names for ivars.  Is it just a personal >>> preference or is there a more profound reason?  So far, I've heard >>> that some people like lowerCase ivars (clear distinction from types, >>> etc), and some people don't think that helps much.  However, I'm yet >>> to he...
2010 Nov 30
0
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...ould be verb phrases I completely agree, but it is worth adding a short justification, explaining that methods are "actions". +Variable (including function parameter) names should start with a lower-case letter. Please remove this. In its place, we should have a naming rule for public ivars, and for enumerations and enumerators. I'd suggest ivars and enums follow the same rules as types. If there is a doubt, the enum should be a "Kind", e.g. "ValueTy" in llvm/Value.h should be "ValueKind". Enumerators (unless they are in their own small namespace)...
2013 Apr 06
0
[LLVMdev] How to compile object C with clang into llvm IR?
...39;) [-Wobjc-method-access] > [ a print: "hello" ]; > ^ ~~~~~ > message-arrays.m:15:1: warning: control reaches end of non-void function > [-Wreturn-type] > } > ^ > 2 warnings generated. > 118-165-76-229:CodeGenObjC Jonathan$ clang -emit-llvm -o 1.ll -c ivars.m > ivars.m:18:12: warning: class 'R' defined without specifying a base class > [-Wobjc-root-class] > @interface R { > ^ > ivars.m:18:13: note: add a super class to fix this problem > @interface R { > ^ > 1 warning generated. > >...
2013 Jan 24
3
[LLVMdev] [lld] driver and options questions
...d you want to programmatically create a LinkerOptions, it is unclear which options need to be set for a particular flavor. It seems like the concrete subclass of TargetInfo will ultimately hold the flavor specific options. So can DarwinDriver get a copy of the MachOTargetInfo object and set its ivars based on the command line options? Previously, I thought of LinkerOptions as the options needed by the core-linking phase (resolver), and the WriterOptions were flavor specific. Here is how I see it currently works: 1) The flavor determines the driver class instantiated. 2) The driver trans...
2010 Nov 29
3
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
On Sun, Nov 28, 2010 at 11:02 PM, Anton Korobeynikov <anton at korobeynikov.info> wrote: >> I enjoyed the new coding style in recent patches. Camel case makes it easy >> to pick a descriptive name. Starting functions and variables with lower >> cases reduces chances to conflict with a type name. > Honestly speaking, I don't. Especially in the cases when varname is