Public.Standards.vCard broken by Pike-v7.9.5(from git)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Public.Standards.vCard broken by Pike-v7.9.5(from git)

郭雪松-2
[peterpan@brain vcard.d]$pike -M pike-modules/
Pike v7.9 release 5 running Hilfe v3.5 (Incremental Pike Frontend)
> object ob=Public.Standards.vCard.strict_parser();
pike-modules/Public.pmod/Standards.pmod/vCard.pmod/module.pmod:442:Can not clone program without parent context.
Compiler Error: 1: Index 'strict_parser' not present in module vCard.
Compiler Error: 1: Indexed module was: Public.Standards.vCard.
Compiler Error: 1: Attempt to call a non function value `() (function call).
Compiler Error: 1: Expected: function.
Compiler Error: 1: Got     : zero.

[peterpan@brain vcard.d]$head -n 442 pike-modules/Public.pmod/Standards.pmod/vCard.pmod/module.pmod|tail
        //!     @value "version"
        //!             A string or float containing the version of the vCard s pecification that should be used when rendering the vCard. Use either 2.1 or 3.0.
    //! @endstring
        //! The following properties have to be passed as strings and are used "as-is": "fn", "bday", "nickname", "label", "mailer", "tz", "geo",
        //! "title", "role", "agent", "org", "categories", "note", "prodid", "rev", "sort-string", "sound", "source", "url", "uid", "class", "key".
        //! Properties beginning with "x-" are also accepted. These are allowed by the vCard specification for extensions to the format.
        //! @seealso
        //!     Have a look at the vCard specification for information about how those different properties are defined.
    void add_prop(string key, mixed value) {
   &nb sp;            .ContentLine line = .ContentLine();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There must be something wrong with .ContentLine, I don't known the dot can be used this way. where is the document? Maybe it's a undocumented feature, and broken now?

Guo Xuesong
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Public.Standards.vCard broken by Pike-v7.9.5(from git)

Arne Goedeke
The dot notation references the current module. I cant reproduce that
bug. Which version of the vCard module are you using?

best

arne

ps. try the one from the git repo at http://laramies.com/git/vcard/

On Mon, 30 Jan 2012, ??? wrote:

> [peterpan@brain vcard.d]$pike -M pike-modules/
> Pike v7.9 release 5 running Hilfe v3.5 (Incremental Pike Frontend)
> > object ob=Public.Standards.vCard.strict_parser();
> pike-modules/Public.pmod/Standards.pmod/vCard.pmod/module.pmod:442:Can not clone program without parent context.
> Compiler Error: 1: Index 'strict_parser' not present in module vCard.
> Compiler Error: 1: Indexed module was: Public.Standards.vCard.
> Compiler Error: 1: Attempt to call a non function value `() (function call).
> Compiler Error: 1: Expected: function.
> Compiler Error: 1: Got     : zero.
>
> [peterpan@brain vcard.d]$head -n 442 pike-modules/Public.pmod/Standards.pmod/vCard.pmod/module.pmod|tail
>         //!     @value "version"
>         //!             A string or float containing the version of the vCard s pecification that should be used when rendering the vCard. Use either 2.1 or 3.0.
>     //! @endstring
>         //! The following properties have to be passed as strings and are used "as-is": "fn", "bday", "nickname", "label", "mailer", "tz", "geo",
>         //! "title", "role", "agent", "org", "categories", "note", "prodid", "rev", "sort-string", "sound", "source", "url", "uid", "class", "key".
>         //! Properties beginning with "x-" are also accepted. These are allowed by the vCard specification for extensions to the format.
>         //! @seealso
>         //!     Have a look at the vCard specification for information about how those different properties are defined.
>     void add_prop(string key, mixed value) {
>    &nb sp;            .ContentLine line = .ContentLine();
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> There must be something wrong with .ContentLine, I don't known the dot can be used this way. where is the document? Maybe it's a undocumented feature, and broken
> now?
>
> Guo Xuesong
>
>
Loading...