hodgesse1 / rfortran

Automatically exported from code.google.com/p/rfortran
0 stars 0 forks source link

Incorrect error message in Rget (confusion re "Fortran" vs "R" type) #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
*** What steps will reproduce the problem?

1. Create a type-double variable rval in R
2. Attempt to Rget it into a Fortran integer fvar
3. Read error message

*** What is the expected output?

Diagnostic that tells you ur trying to read an R double into a Fortran integer

*** What do you see instead?

The inexact contrary

*** What version of RFortran are you using?

2.1.2

*** If you have a coding solution to this defect please include the file
(or preferably a svn patch) as an attachment

attached

*** Please provide any additional information below.

The bug is in the confused names. In procedure 'checkType', Rvartype is 
actually the type of the Fortran variable. Whereas 'SymType' is the type of the 
variable in R.

The attached patch is a patch, not a definitive solution, because the argument 
names remain misleading. This is opaque to a user.

Original issue reported on code.google.com by dmitri.k...@gmail.com on 20 Dec 2010 at 4:04

Attachments:

GoogleCodeExporter commented 8 years ago
Error message was indeed misleading. It has now been reworded to reduce 
confusion and the argument names changed to better match their role. 

Will be included in the v3.0 release of RFortran

Original comment by mark.th...@gmail.com on 13 Feb 2011 at 1:46