Как установить завихрение php5 у снежного барса Mac OSX?

Внутренним классам (как Button.ClickEvent) нужна ссылка на экземпляр внешнего класса (Button).

, Что синтаксис создает новый экземпляр Button.ClickEvent с его внешним набором ссылки класса к значению button.

Вот пример - игнорируют отсутствие инкапсуляции и т.д., это только в целях демонстрации:

class Outer
{
    String name;

    class Inner
    {
        void sayHi()
        {
            System.out.println("Outer name = " + name);
        }
    }
}

public class Test
{
    public static void main(String[] args)
    {
        Outer outer = new Outer();
        outer.name = "Fred";

        Outer.Inner inner = outer.new Inner();
        inner.sayHi();
    }
}

раздел See 8.1.3 из спецификации для больше о внутренних классах и экземплярах включения.

9
задан Drew Noakes 3 October 2009 в 08:56
поделиться

1 ответ

I would install it via macports. Once you've installed mac ports, you can use it to build and then install php5 curl with the command

sudo port install php5-curl

I was able to determine what the mac ports package name was by using the ports search function:

port search curl

Edit: You must have Apple Developer tools (X Code) installed on your machine for mac ports to work. X Code can be downloaded free from Apple. It also should be on your second Snow Leopard installation disc.

As a developer working on Apple machines, I find ports indispensable. It's rare that I get through an entire project without relying on it for some dependency, especially when I am using a lot of open source libraries. It's worth spending some time looking around and seeing what else is in there.

17
ответ дан 4 December 2019 в 12:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: