Opened 12 years ago

Last modified 12 years ago

#390 new bug

Singular interpreter shows different behaviour for procedures and kernel commands

Reported by: steenpass Owned by: hannes
Priority: minor Milestone: 3-1-4 and higher
Component: dontKnow Version: 3-1-3
Keywords: interpreter Cc:

Description

> ring r = 0, x, dp;
> ideal i = 256x;
> bigint p = 7;
> farey(i, p);   // everything OK until here
_[1]=1/2x
> list arguments = list(i, p);                        // now this list applied to
> proc command(ideal i, bigint p) { farey(i, p); };   // this procedure
> command(arguments[1..size(arguments)]);             // works fine,
_[1]=1/2x
> farey(arguments[1..size(arguments)]);               // but this does not work.
   ? error occurred in or before STDIN line 8: `farey(arguments[1..size(arguments)]);`
   ? last reserved name was `size`
   skipping text from `;` error at token `)`
> 

The problem here is that syntax of the form 'command(arguments[1..size(arguments)]);' has been used in parallel.lib so far as a generic way to apply arguments given by a list to some command.

Change History (1)

comment:1 Changed 12 years ago by steidel

Owner: changed from somebody to hannes

Implement call_proc_list.

Note: See TracTickets for help on using tickets.