Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Noticias
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Colaboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 07-11-2004
Avatar de Al González
[Al González] Al González is offline
In .pas since 1991
 
Registrado: may 2003
Posts: 5.610
Poder: 32
Al González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en bruto
Smile

¡Buen día a todos!

Continuando con el tema.


Algo más sobre las funciones InLine:

Borland has applied the inline directive to some of the smaller routines in the VCL and RTL, where deemed appropriate. As a result, code that uses these routines will execute faster than before, but with slightly larger executables.

Borland ha aplicado la directiva InLine a algunas de las rutinas más pequeñas de la VCL y la RTL, donde juzgó apropiado. Como resultado, el código que utiliza estas rutinas se ejecutará más rápido que antes, pero con ejecutables ligeramente más grandes.


Constantes anidadas en tipos:

Nested type constants are constant class member declarations inside of a class type declaration. Nested type constants are somewhat similar to class functions, in that they can be referenced using a class reference without an instance of the class. Unlike class functions, however, nested type constants always return a constant value.

Código:
TTemperatureConverter = Class (TObject)
  Public
    Const AbsoluteZero = -273;
¡Que bien! En ocasiones tuve que crear funciones clase que devolvían un valor entero; con esto de las constantes anidadas en tipos me ahorraré la implementación de código.


IDE Error Reporting:

Borland's commitment to creating better software has lead to the development of a number of programs for reporting and fixing problems. One of the most recent of these is Quality Central, a Web-based application for submitting bug reports located at http://qc.borland.com. With Delphi 2005, Borland has embedded an error reporting system directly into the IDE. This feature is called IDE Error Reporting. If an exception is raised within the IDE, Delphi 2005 displays the Error dialog box. If you click the Details button, you see a detailed trace of the error.

Con esta herramienta uno puede reportar un error de Delphi a Borland (cuando por alguna casualidad del universo lleguemos a encontrarle uno), describiendo las condiciones que propiciaron el error y, en la medida de lo posible, indicarles los pasos a seguir para reproducir la incidencia detectada.


SyncEdit:

Es una pequeña pero extremadamente útil herramienta dentro del propio editor de código. Permite marcar un bloque de sentencias, y entonces cambiar un identificador que aparece varias veces dentro de él, simplemente escribiendo el nuevo nombre en cualquiera de los lugares donde aparezca ese identificador. Siendo esto todavía más útil cuando son varios y diferentes identificadores repetidos los que el programador desea cambiar.

Empresarios: ¿Buscan ahorro de tiempo en los desarrollos?


Error Insight:

La automática verificación ortográfica y gramatical para programadores. Si escribes:

Código:
Begin
  MiObjeto.MetodoQueNoExiste;
Delphi subraya con color rojo "MetodoQueNoExiste", similar a la verificación ortográfica de Microsoft Word.


Comentado de código:

Seleccionas un grupo de sentencias, presionas Ctrl+/ y le pone el prefijo "//" a cada línea (las hace comentarios). Para descomentarlas presionas nuevamente Ctrl+/. ¡Que chulada! .


Virtual Library Interfaces (VLI), una lección más de Borland a Microsoft:

Virtual library interfaces permit you to call routines in Win32 DLLs from your .NET applications much more easily than the mechanism provided by .NET's PInvoke.

Normally, managed code in the .NET framework can call routines in unmanaged libraries through the .NET platform invoke service, or PInvoke. With PInvoke, you import the exported routines of an unmanaged DLL by using the [DLLImport] attribute to identify the DLL in which the function is located, as well as other characteristics of the exported function.

There are several drawbacks to using PInvoke. First, using the [DLLImport] attribute you cannot resolve the DLL name or location (path) at runtime. Second, if the specified routine in the DLL cannot be loaded, for whatever reason, a runtime exception is raised. Third, the [DLLImport] attribute is somewhat verbose and repetitive, especially when you have many routines that you are importing from a single DLL.



Definitivamente, por lo anterior y muchas otras características que encontré, Delphi 2005 es una verdadera herramienta de vanguardia. ¡Caramba!, es que no hay como Borland para hacer herramientas de programación. No hay nadie mejor.

Sólo me resta agregar que, personalmente, me hubiera gustado encontrar en Delphi 2005:

1. El uso de la palabra reservada Return (para evitar "Result := Valor;" + "Exit;").
2. La herencia insertada que tanto he añorado (poder cambiarle el padre a una clase de objeto).
3. Expresiones de asignación (If Cadena := Str = 'Lotus' Then).

Algún día será .

Un abrazo a todos.

Al González .

Última edición por Al González fecha: 08-11-2004 a las 16:57:00.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 16:31:38.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi