From simon.urbanek at r-project.org  Thu Jun  9 02:35:34 2011
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 8 Jun 2011 20:35:34 -0400
Subject: [Rd] "warning: assignment discards qualifiers from pointer
	target type"
In-Reply-To: <20110609003209.GA4839@siouxsie>
References: <20110607130854.GA4510@siouxsie> <4DEE3786.5000800@gmail.com>
	<alpine.LFD.2.02.1106071606010.26985@gannet.stats.ox.ac.uk>
	<20110608160839.GA11746@siouxsie>
	<B68723F7-F66B-40FD-AE38-0A88C0C51B82@r-project.org>
	<20110609001731.GA3565@siouxsie> <20110609003209.GA4839@siouxsie>
Message-ID: <86C9E656-BCF4-48C8-8016-877DFAA0D158@r-project.org>


On Jun 8, 2011, at 8:32 PM, oliver wrote:

> On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote:
> [...]
>> OK, I looked at this now.
>> 
>> LENGTH() checks the length of the vector.
>> 
>> Good to know this.
>> 
>> So the problem of a vector of length 0 can be with any arguments of type SEXP,
>> hence I will need to check ANY arg on it's length.
>> 
>> This is vital to stability under any situation.
>> 
>> Thanks for this valuable hint!
>> 
>> I will add checks for all my SEXP-args.
> [...]
> 
> Hey, LENGTH() does not work with String-vectors! :(
> 

Of course it does ...



[Rd] "warning: assignment discards qualifiers from pointer target type"
Simon Urbanek