aliased_substring

5 messages Options
Embed this post
Permalink
Colin Paul Adams

aliased_substring

Reply Threaded More More options
Print post
Permalink
Could we please have this in Free ELKS, along with aliased versions of
other queries that make use of substring (where appropriate), as per:

http://www.eiffelroom.com/blog/colin_adams/unicode_strings_an_opportunity#comment-410
--
Colin Adams
Preston Lancashire

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel
Emmanuel Stapf

Re: aliased_substring

Reply Threaded More More options
Print post
Permalink
It is going to require some work to achieve that and I do not have much time
right now for doing that. Maybe we can start discussin whether the idea I
suggested make sense (using a boolean flag) or whether there is an even
better alternative.

Manu

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On
> Behalf Of Colin Paul Adams
> Sent: Friday, January 18, 2008 1:33 AM
> To: [hidden email]
> Subject: [freeelks-devel] aliased_substring
>
> Could we please have this in Free ELKS, along with aliased
> versions of other queries that make use of substring (where
> appropriate), as per:
>
> http://www.eiffelroom.com/blog/colin_adams/unicode_strings_an_
> opportunity#comment-410
> --
> Colin Adams
> Preston Lancashire
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft Defy all
> challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> freeelks-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/freeelks-devel
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel
------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  
Colin Paul Adams

Re: aliased_substring

Reply Threaded More More options
Print post
Permalink
>>>>> "Emmanuel" == Emmanuel Stapf [ES] <[hidden email]> writes:

    Emmanuel> It is going to require some work to achieve that and I
    Emmanuel> do not have much time right now for doing that. Maybe we
    Emmanuel> can start discussin whether the idea I suggested make
    Emmanuel> sense (using a boolean flag) or whether there is an even
    Emmanuel> better alternative.

Is the flag intended for copy-on-write operations?
--
Colin Adams
Preston Lancashire

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel
Colin Paul Adams

Re: aliased_substring

Reply Threaded More More options
Print post
Permalink
>>>>> "Colin" == Colin Paul Adams <[hidden email]> writes:

>>>>> "Emmanuel" == Emmanuel Stapf [ES] <[hidden email]> writes:
    Emmanuel> It is going to require some work to achieve that and I
    Emmanuel> do not have much time right now for doing that. Maybe we
    Emmanuel> can start discussin whether the idea I suggested make
    Emmanuel> sense (using a boolean flag) or whether there is an even
    Emmanuel> better alternative.

    Colin> Is the flag intended for copy-on-write operations?

I haven't seen an answer, so here is my suggestions:

1) Add a query:

   is_copy_on_write: BOOLEAN
      -- Does `Current' have copy-on-write semantics?

2) Add creation procedures make_from_string_copy_on_write (or
make_from_string_cow?) and make_from_c_copy_on_write (or
make_from_c_cow?) equivalent to make_from_string and make_from_c
respectively, but with the additional postcondition of
is_copy_on_write = True (I don't know anything about .NET so I don't
know whether there should be an equivalent for make_from_cil).

3) Aliased_substring will then need both a precondition and a
postcondition of is_copy_on_write.
--
Colin Adams
Preston Lancashire

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel
Peter Gummer-2

Re: aliased_substring

Reply Threaded More More options
Print post
Permalink
Colin Paul Adams wrote:

> 2) Add creation procedures make_from_string_copy_on_write (or
> make_from_string_cow?) and make_from_c_copy_on_write (or
> make_from_c_cow?) equivalent to make_from_string and make_from_c
> respectively, but with the additional postcondition of
> is_copy_on_write = True (I don't know anything about .NET so I don't
> know whether there should be an equivalent for make_from_cil).


Yes, .NET would need a cow too. Eiffel's STRING semantics are completely
independent of the .NET String semantics.

- Peter



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel