Namespaces

Consider the following code:

[code] using Xojo.Math

return Sqrt(x^2 + y^2)[/code]

This should be using the new Xojo.Math.Sqrt method to evaluate (x^2 + y^2) correct? However, when I hover over Sqrt, the tooltip says Realbasic.Sqrt(value as Double) as Double. Surely it should say Xojo.Math.Sqrt(value as Double) as Double? Is this an IDE bug or am I using namespacing incorrectly? I’m trying to use the new Xojo framework as much as possible.

I never understood why ‘Realbasic’ still appears … it should be possible to have it replaced everywhere … or ?

Realbasic is legacy. Xojo.Math is new framework.

I very seldom employ using. I rather prefix.

One thing is certain : both RealBasic.Sqrt and Xojo.Math.sqrt give the same value, which is good.

This is an IDE glitch. The syntax help area sometimes shows incorrect help info for classes/methods when the Using statement is used. You are using it correctly.

Thanks Paul. Is there a feedback case for this already then?

I couldn’t find one, so I created one: <https://xojo.com/issue/42504>