Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#306 closed defect (fixed)

Built-in binding still partially active due to -scrutinize

Reported by: Kon Lovett Owned by:
Priority: minor Milestone:
Component: core tools Version: 4.5.x
Keywords: scrutiny format Cc:
Estimated difficulty:

Description

In source: (import ... no unit extras ... (only format-compiler-base format) ...)

Compiler generates:

Warning: in local procedure `error-depends',

in local procedure `resolve-unit',
in local procedure `body685',
in toplevel procedure `simple-units#*make-units':
format: in procedure call to format', expected argument #1 of type string', but where given an argument of type `boolean'

(This is wrong anyway. Unit extras format allows boolean here.)

Change History (4)

comment:1 Changed 12 years ago by felix winkelmann

Somehow "format" gets expanded into the core "format", not "format-compiler-base#format" (which, I think it should). Superficially analysing this a quick stab at a solution seems to me not to import "extras" in "format-compiler-base" (or at least use (except extras format)), as this will overwrite the imported binding of format.

If that doesn't help, I'll go hunting.

The entry for format in types.db is indeed wrong, thanks for pointing that out.

comment:2 Changed 12 years ago by felix winkelmann

Component: unknowncore tools
Keywords: scrutiny format added

comment:3 Changed 12 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

I have opened a new ticket for the problematic import of format in format-compiler-base (#336).

comment:4 Changed 12 years ago by felix winkelmann

Milestone: 4.6.0

Milestone 4.6.0 deleted

Note: See TracTickets for help on using tickets.