realbasic-nug
[Top] [All Lists]

Re: Namespace feature or bug

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Namespace feature or bug
From: Chris Little <cslittle at mac dot com>
Date: Sun, 30 Sep 2007 16:59:11 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcgDpL/z/quvZW+XEdy1nwAX8shUyA==
Thread-topic: Namespace feature or bug
on 9/30/07 4:08 PM, Joe Huber at joehuber at talasoft dot com wrote:

> If I call a method in a module using it's qualified name, and that
> method does not exist, is it an error for the compiler to use a
> global name instead? I would expect a compile time error, but I'm not
> fully conversant with the new Namespace capability, so maybe it's
> somehow a feature???
> 
> If I call ModuleName.MethodName, and MethodName doesn't exist in that
> module, RB2007r4 uses a global constant I have called MethodName
> instead.
> 
> 
> Since it didn't find the method within the the specified module, I
> would have expected a compile time error. Or am I misunderstanding
> why this might be a desired namespace feature?

I would expect an error with a fully qualified name.

Chris


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>