Opened 13 years ago

#225 new defect

module-name.rule-name not in global namespace

Reported by: Md Abdur Rahim Owned by: somebody
Priority: major Milestone:
Component: component1 Version: 2.0
Keywords: Cc: chetanreddy@…

Description

The example provided here doesn't work in bjam. Here's what i see:

$ cat test.jam 
module my_module
{
    rule salute ( x ) { ECHO $(x), world ; }
    rule greet ( ) { salute hello ; }
    greet ;
}
my_module.salute goodbye ;

NOCARE all ;
$ bjam -f test.jam
hello, world
test.jam:7: in module scope
rule my_module.salute unknown in module 

I've attached a patch that fixes this issue. Let me know if i'm doing something wrong.

Attachments (1)

module.rule.patch (608 bytes ) - added by Md Abdur Rahim 13 years ago.

Download all attachments as: .zip

Change History (1)

by Md Abdur Rahim, 13 years ago

Attachment: module.rule.patch added
Note: See TracTickets for help on using tickets.