Displaying 20 results from an estimated 3658 matches for "precedence".
2020 Jan 10
1
Operator precedence of =, <- and ?
The documentation (help("Syntax")) gives the operator precedence of the
assignment operators and help, from highest to lowest, as:
?<- <<-? assignment (right to left)
?=? assignment (right to left)
??? help (unary and binary)
If I understand correctly this implies that `a = b ? c` and `a <...
2005 Feb 04
7
FW: Bug fix
Forwarded, because I don''t think he''s subscribed and I''m not getting an
email notification in my Yahoo account.
Dan
-----Original Message-----
From: CT [mailto:demerzel@gmail.com]
Sent: Friday, February 04, 2005 4:17 PM
To: Berger, Daniel
Cc: win32utils-devel@rubyforge.org
Subject: Re: Bug fix
On Fri, 4 Feb 2005 16:53:17 -0600, Berger, Daniel
2019 Aug 30
3
?Syntax wrong about `?`'s precedence ?
Precedence is a property of the parser and has nothing to do with the
semantics assigned to various symbols. Using just core R functions you can
see the precedence of '?' is between those of '=' and '<-'.
> # '=' has lower precedence than '?'
> str(as.list(pa...
2019 Aug 29
2
?Syntax wrong about `?`'s precedence ?
Dear all,
`?Syntax` documents that `?` has the lowest precedence, right under `=`.
Indeed it reads:
*The following unary and binary operators are defined. They are listed in
precedence groups, from highest to lowest. *
and ends the list with
*<- <<-* *assignment (right to left)*
*=* *assignment (right to left)*
*?* *help (unary and binary)*
I belie...
2019 Aug 30
1
?Syntax wrong about `?`'s precedence ?
...and 14955, which seems to have the explanation (but was marked as closed/fixed??). The parser does list '?' as lower precedence than '=', but '='-assignments are not normal 'expr's which can appear as arguments to '?'. (Presumably because of named arguments: f(a=b) differs from f(a<-b).)
Other tokens which have lower precedence than assignments are flow-control items, IF ELSE WHILE FOR...
2018 Jun 08
2
/etc/gai.conf fails to prefer IPv4 over IPv6 for NFS
...imes-out and the IPv4 address
of the server mounts successfully.
Disabling IPv6 altogether works around the problem as expected, but is
a bigger hammer than we wanted to use. :-)
I found posts from others in a similar situation, and proposed solutions
included modifying /etc/gai.conf to use:
precedence ::ffff:0:0/96 100
I cp'd /usr/share/doc/glibc-common-2.12/gai.conf to /etc/ and tried that,
with several other permutations (e.g. uncommenting other blocks of "label"
and "precedence" settings) but none achieved the desired effect.
Am I misunderstanding how this is suppos...
2008 Jun 02
4
NOT-SO-SIMPLE function!
I am trying to set up a function which processes my data according to the
following rules:
1. if (x[i]==0) NA
2. if (x[i]>0) log(x[i]/(number of consecutive zeros immediately preceding
it +1))
The data this will apply to include a variety of whole numbers not limited
to 1 & 0, a number of which may appear consecutively and not separated by
zeros. Below is an example with a detailed
2006 Jul 06
2
Precedence of access parameters
hello all,
im trying to figure out the precedence of security parameters in
smb.conf. i know that settings in specific shares take precedence over
settings in global; 'invalid users' takes precidence over all other
security settings. but others im not so clear on, such as: does 'read
only' take precedence over 'write list'?...
2019 Aug 30
0
?Syntax wrong about `?`'s precedence ?
See also: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16710
On Fri, Aug 30, 2019 at 9:02 AM William Dunlap via R-devel
<r-devel at r-project.org> wrote:
>
> Precedence is a property of the parser and has nothing to do with the
> semantics assigned to various symbols. Using just core R functions you can
> see the precedence of '?' is between those of '=' and '<-'.
>
> > # '=' has lower precedence than '?'...
2011 Apr 20
1
sieve-test ignores precedence and other for vacation
Hello,
I'm using pigeonhole-0.2.3, it works fine.
I tried to verify some build in checks of vacation concerning precedence
or auto-submitted header lines.
It looks like sieve-test ignores header lines like
Auto-Submitted: auto-submitted
Precedence: bulk
Return-Path: MAILER-DAEMON at ...
if I have a vacation script like
require ["vacation", "regex", "fileinto", "variable...
2017 Mar 17
3
Support for user defined unary functions
I agree there is no reason they _need_ to be the same precedence, but
I think SPECIALS are already have the proper precedence for both unary
and binary calls. Namely higher than all the binary operators (except
for `:`), but lower than the other unary operators. Even if we gave
unary specials their own precedence I think it would end up in the
same place.
`...
2017 Mar 17
2
Support for user defined unary functions
The unquoting discussion is IMHO separate from this proposal and as
you noted probably better served by a native operator with different
precedence.
I think the main benefit to providing user defined prefix operators is
it allows package authors to experiment with operator ideas and gauge
community interest. The current situation means any novel unary
semantics either need to co-opt existing unary operators or propose
changes to the R parser,...
2005 Dec 19
2
Parentheses for precedence?
...;t get any search resuts. This seems to only be an issue when NOT
(or a preceding -) are used. For example, both of these work:
(other_text:"Collaborative tools") AND other_text:podcasts
(other_text:"Collaborative tools") AND (other_text:podcasts)
My use of parentheses is for precedence (I assume they work that way). I
quickly looked at query_parser.y, but as I''ve never used racc (or yacc),
it''s not apparent to me what should be happening.
Thanks!
Jen
2007 Nov 16
2
[Fwd: pxelinux doesn't suppress common prefix if nothing precedes double colon]
Just a reminder that this remains an issue up to and including the
latest syslinux 3.53-pre (0x473cfc9c).
Additional testing suggests that implicit hostname/IP has never worked,
ever since the common prefix suppression feature was added in version 3.00.
-------- Original Message --------
Subject: pxelinux doesn't suppress common prefix if nothing precedes
double colon
Date: Sat, 25 Aug
2007 May 14
1
Recursive file hieararchy with order precedence
...have
identified which files that are common to every host, and then which
files are common to any particular site. Finally, you have the files
which are private to the node in question.
What I was wondering was if it would be possible to have some sort of
directory hierarchy which has some kind of precedence, or order.
The following example tree explains it,
regional/root/.ssh/authorized_keys
regional/etc/nsswitch.conf
siteA/etc/resolv.conf
siteB/etc/resolv.conf
node1/etc/motd
node2/etc/motd
Now, I would rather not write rules for every single file, I would like
to write one generic rule that does t...
2017 Mar 16
2
Support for user defined unary functions
Gabe,
The unary functions have the same precedence as normal SPECIALS
(although the new unary forms take precedence over binary SPECIALS).
So they are lower precedence than unary + and -. Yes, both of your
examples are valid with this patch, here are the results and quoted
forms to see the precedence.
`%chr%` <- function(x) as.character(x)...
2017 Mar 17
2
Support for user defined unary functions
...e, and fits in to R's functional design? In particular,
what does it give us that the current tilde function does not?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Mar 17, 2017 at 6:46 AM, Gabriel Becker <gmbecker at ucdavis.edu> wrote:
> Jim,
>
> One more note about precedence. It prevents a solution like the one you
> proposed from solving all of the problems you cited. By my reckoning, a
> "What comes next is for NSE" unary operator needs an extremely low
> precedence, because it needs to greedily grab "everything" (or a large
> amount)...
2014 May 07
0
Historical NA question (Herv? Pag?s)
...ls %in% negSet & # commentary
> + els %in% posSet
> + }"
>> inToIsElement(parse(text=txt, keep.source=FALSE))[[1]]
> function(els, negSet, posSet) {
> is.element(-els, negSet) & is.element(els, posSet)
> }
>
> It assumes that you didn't make any precedence errors with %in%.
Thanks Bill. I appreciate that you are really trying to help me with my
"precedence problem". Maybe I should clarify that I can live with it
though. Anyway, it's always good to know how to make substitutions in
the parse tree.
Cheers,
H.
>
> Bill Dunlap
>...
2010 Jun 03
2
[LLVMdev] [PATCH] docs/tutorial/ Kaleidoscope typos
Index: docs/tutorial/LangImpl6.html
===================================================================
--- docs/tutorial/LangImpl6.html (revision 105365)
+++ docs/tutorial/LangImpl6.html (working copy)
@@ -531,7 +531,7 @@
def unary-(v)
0-v;
-# Define > with the same precedence as >.
+# Define > with the same precedence as <.
def binary> 10 (LHS RHS)
RHS < LHS;
Index: docs/tutorial/OCamlLangImpl6.html
===================================================================
--- docs/tutorial/OCamlLangImpl6.html (revision 105365)
+++ docs...
2014 May 07
2
precedence (was 'historical NA question')
Hadley asked about the Blue book; my shelf still has the earlier brown book
Becker and Chambers, 1984, S: An interactive environment for data analysis and graphics.
The manual page for precedence is
$ component select
%x special operator
- unary minus
: sequence operator
^ ** exponentiation
* / mult/div
+ - add/sub
< > <= >= == != logical
! not
& | and/or
<...