[Info-vax] Error Messages in Basic - %BASIC-E-PARMODNOT, mode for parameter <n> of routine <procedure-name> not as declared

Arne Vajhøj arne at vajhoej.dk
Wed Jun 12 21:33:00 EDT 2019


On 6/12/2019 7:37 AM, Neil Rieck wrote:
> On Sunday, June 9, 2019 at 10:07:17 PM UTC-4, Arne Vajhøj wrote:
>> On 6/9/2019 10:43 AM, Dave Froble wrote:
>>> On 6/9/2019 7:28 AM, Neil Rieck wrote:
>>>> On Saturday, June 8, 2019 at 11:16:47 PM UTC-4, Dave Froble wrote:
>>>>> I guess where I'm confused is what is the difference between a RECORD
>>>>> structure that is basically 8 bytes, regardless of the makeup, and the
>>>>> BASIC QUAD variable definition.  I'm assuming there is a difference,
>>>>> since the reported problem exists.  But what is that difference, and,
>>>>> WHY?
>>>>>
>>>>> If declaring a variable, and passing it by ref, then what I'd expect is
>>>>> simply the address of the 8 bytes.  What am I missing?
>>
>> Apparently Basic do think the two declarations are non-compatible
>> in the context.
>>
>> Can you assign them to each other?
>>
>> If no then it sort of make sense that they are not interchangeable
>> in a call either.

> You can't "directly" assign them to each other. But you can use "a variant statement" within a record declaration to pass the payload of one into the other.

That is possible in many languages C, C++, Pascal, Ada etc..

Arne




More information about the Info-vax mailing list