Philippe Laré | 22 May 18:02
Picon
Favicon

type problem with store using odbc

Hello,

I have a problem with a program dealing with a PostgreSQL database through ODBC which seems to work well with
all types except DATE_TIME. The piece of code which don't work as expected is:

l_any: ANY

l_any is affected from the database through Eiffel mechanism.

if attached {DATE_TIME} l_any as l_r_date_time then
    -- some treatment
end

When debugging, in the debug windows, l_any is displayed as a DATE_TIME object with the value 05/21/2012
3:23:28.000 PM, but the if clause is considered as False. An other effect is that it skips the
milliseconds, the PostgreSQL value is 2012-05-21 15:23:28.42+02.

I precise that l_any is not recognized as an other type, neither STRING_8 nor STRING_32 unless I make a conversion.

Does someone have an idea?

Regards,
Philippe

[Non-text portions of this message have been removed]

------------------------------------

pgcrism | 21 May 10:47
Picon
Favicon

EiffelStudio: Tools -> External Commands

Hello,

Where are stored the definition of externals commands ?

Is it possible to let them defined in some config file so that it is possible to define commands once for all
for a team?

Thank you,
Best regards,

Paul G. Crismer

------------------------------------

pgcrism | 21 May 10:39
Picon
Favicon

EiffelStudio: Tools -> Setup Customized Formatters

Hello,

What is the usage of this menu entry?
I played with it but do not understand the hows and whys.
Where is the documentation?

Thank you,
Best regards,

Paul G. Crismer

------------------------------------

Jimmy Johnson | 18 May 20:35
Picon
Favicon

How to place picture onto a button?

What is the best way to include resources, such as .png files, into a project?  Specifically, I want to place a
picture onto an ev_button.  I have tried the code below.  It works fine on windows (at least it finds the
directory), but OS X does not like any of the formats I have tried for the path.

	test_pixmap
			-- Try to put a pixmap onto a button
		local
			d: DIRECTORY
			p: EV_PIXMAP
			f: RAW_FILE
			dn, fn, n: STRING
		do
			dn := "../jj_bitmaps/png"
			fn := "breakpt.png"
			create d.make (dn)
			if d.exists then
				io.put_string ("Directory '" + d.name + "' exists.  %N")
			else
				io.put_string ("Directory '" + d.name + "' does NOT exist. %N")
			end
			n := dn + "/" + fn
			create f.make_open_read (n)
			if f.exists then
				io.put_string ("The file exists %N")
			else
				io.put_string ("File NOT found %N")
			end
			create p
			p.set_with_named_file (n)
			io.put_string ("the pixmap name was set %N")
(Continue reading)

Howard Thomson | 15 May 20:54
Gravatar

INTEGER_64 file offsets

Hi All,

Is there yet an interface to an open file that has an INTEGER_64 query
for the current file offset, and corresponding seek/go command with an
INTEGER_64 argument ?

Or is the solution to map INTEGER to INTEGER_64 ?

In the case of type mapping, does that apply, necessarily, to the whole
project, or can one type map for specific classes / clusters ?

Regards,

Howard

--

-- 
Howard Thomson <howard.thomson@...>

------------------------------------

rfo | 15 May 12:28

RE: [eiffel_software] Purpose of once strings

Hi Carl

Once strings were used for quite a while as a way to have string
constants.  Not compile-time constants, but initialized at first use at
run time, possibly with values only known at run time.  While the object
references are constant, their constituent characters are not (they are
as mutable as any other string object) and recently the "readable"
string mechanism has been introduced to fill that void, so to speak.
Another use is to provide a shareable buffer amongst objects of common
lineage (a la zero copy mbufs).  Onces are once in time and space, and
that's a very important and powerful notion.

     R

==================================================
Roger F. Osmond

> -------- Original Message --------
> Subject: Re: [eiffel_software] Purpose of once strings
> From: "Alexander Kogtenkov" <kwaxer@...>
> Date: Tue, May 15, 2012 2:57 am
> To: <eiffel_software@...>
> 
> 
> Hi Carl,
> 
> > I'm curious what you use "once" strings for.
> 
> In the early days there were different views on the instructions like
> 
(Continue reading)

Louis M | 15 May 02:32

Eiffel Vision problem

Hi,
For a long time, I use Eiffel Build on Linux. Everything work fine
there. Today, I try to port one of my applications on Windows. I've
got an error with the precompile library. Here is the problem:

Warning code: VD43

Configuration error: precompiled file is missing or unreadable.
What to do: make sure that the file exists, that appropriate permissions
  are set, and that the precompiled C code has been compiled.

File: c:\users\louis\documents\eiffel user
files\7.0\precomp\spec\windows\EIFGENs\vision2\W_code\mingw\driver.exe

When I check the "C compiler Error", I see this error:

gcc.exe: c:\users\louis\documents\eiffel user
files\7.0\precomp\spec\windows\EIFGENs\vision2\W_code/mingw/precomp.lib:
No such file or directory
gcc.exe: Shlwapi.lib: No such file or directory

So, I try to create I new project with EiffelBuild (the most simple
project EiffelBuild can do). I remove the "EIFGENs" directory in the
precomp directory. After the precompilation, I've got the same
problem. I try this on 3 different computers (one fresh install) and I
always have the same error. I check the mailing list archive and I
found some similar error on Eiffel Studio 6.x, but everything I try
didn't work. Here is my spec:

C compiler: gcc (mingw install by EiffelStudio)
(Continue reading)

carl94706 | 14 May 18:25
Picon
Favicon

Purpose of once strings

I'm curious what you use "once" strings for.

Thanks,
Carl

------------------------------------

Berend de Boer | 10 May 04:51
Picon
Favicon
Gravatar

Why has READABLE_STRING_8.to_integer but READABLE_STRING_GENERAL hasn't?

Hi All,

I fail to understand why READABLE_STRING_GENERAL doesn't have
to_integer. Can that be added?

--

-- 
All the best,

Berend de Boer

          ------------------------------------------------------
          Awesome Drupal hosting: https://www.xplainhosting.com/

------------------------------------

Philippe Laré | 9 May 13:53
Picon
Favicon

Small suggestion about Eiffel Studio

May I have a small suggestion about Eiffel Studio? In advance, I apologize if this suggestion has already
been done.

With the (not so) new syntax of Eiffel, the keyword "is" was removed. When using the new syntax and writing a
routine, pressing the [return] key just adds a new line the Unix or the Windows way and as much tabulations
on the start if the new line as there was on the previous. The cursor is placed at the end of the new line.

The current UI of Eiffel Studio reacts the same way it reacted when the previous syntax was used. If "is" is
added at the end of the line, pressing the [return] key adds:
    - a new linestarting with the same number of tabulations as the previous one plus two extra
tabulations plus the "--" announcing a comment and a space before the [CR] and [LF]. The cursor is placed
after this space
    - a new line starting with the same number of  tabulation as the first one plus one where you can add
the do ... end or deferred .. end, or else, after have been putting the necessary comment on the previous one
and sliding on it using the [down arrow] key. That was nice.

Would it be possible to have the same behaviour in the current version of Eiffel Studio with an automatic
erasement of the "is" and the spaces before it so we could enjoythe same commodities with the new syntax?

[Non-text portions of this message have been removed]

------------------------------------

Favicon

Looking for a graph library

Hello community,

I recently found out that I am in need of some sort of graph library to create e.g. directed-graphs etc.

I haven't been able to locate something that was generic enough to be used out-of-the-box. My question is
whether such exist and, if so, where I can retrieve it.

- Thanks

Kind regards,
Søren Engel (soen)

------------------------------------


Gmane