Re: [Vala] Handling strings



On Wed, 2017-04-19 at 13:43 +0200, Sascha Manns wrote:
Hello list,

actually i'm trying to use some strings in my vala app:

    private string entity_file_suffix = ".ent";
    private string directory_separator_char = "/";
    private string entity_file_local = publication_title +
entity_file_suffix;
    private string project_dir = target_dir +
directory_separator_char +
publication_title + directory_separator_char + create_language;

I'm getting the information that the access to instance member is
denied.

How can i concat strings in Vala? The doc under
https://wiki.gnome.org/Projects/Vala/StringSample uses the same way.

It doesn't really answer your question, but you should probably be
using GLib.Path.build_path().  You still need to do it at the right
time (like Al mentioned), though.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]