Re: Some understanding questions...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I've asked the J# team on this and will let you know about it

if anyone has time to checkout "Thinking in Java" book from
www.eckelobjects.com or the Java specification from java.sun.com on this,
please post your findings as a reply

> > If the other class file is in the same namespace, then you can access
only
> > "public" or "protected" methods and variables.
>
> not sure if in J# you can access "protected" fields of a class from
another
> class that has same namespace or not. In Java you should be able to do so
> only from class descendents, so this is problematic security-wise if this
is
> true (esp. when porting existing Java code to J#). Unless you can somehow
> seal a namespace (as you can do with packages in Java), maybe by using a
> signed assembly so that no other third-party code uses it apart from the
> code you want. Since there's the notion of "package private" too as I
> describe above, not sure why there should be separate namespace behaviour.
> To be sure try it and see what it does


.



Relevant Pages

  • Re: Hypothetical: All code in classes but main()
    ... the argument Stroustrup gives for having helper functions at namespace ... If a function requires access to member data, then by all means make it ... > There are advantages to having the static Math class in Java. ...
    (comp.lang.cpp)
  • Re: C# vs VB.Net
    ... CSC students code in java for most classes. ... C# puts in "namespace MyCompany.Technology.Args" for you. ... there is no simple way of telling the runtime not to serialize ... VB.NET has no within-the-line comment syntax ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Connecting to Analysis Services with Java XML
    ... I said to change the "namespace" and not the content (you may also need to ... The xmlns specifies a namespace (sort of like a Java package). ... Is there a way of looking at the request stream ... "DataSourceInfo". ...
    (microsoft.public.data.xmlanalysis)
  • Re: Question of a Java programmer
    ... similar to packages, but there really *isn't* a concept like an assembly in Java. ... You *can* add metadata to a jar file saying that no other jar files are allowed to add to a namespace, ...
    (microsoft.public.dotnet.languages.csharp)
  • How to retain the namespace xmlns:enc in XML thro XSLT ?
    ... I am trying to pass the namespace, which is in my Original Message, to ... a Java method for further processing. ... Original Message which is passing to the XSLT Processor with xmlns:xenc ...
    (comp.lang.java.programmer)