[fpc-pascal] SSE instructions

2013-09-27 Thread August Oktobar
Are there any plans to add support for SSE intrinsic instructions, similar
to MMX?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Constants and proc types

2013-09-27 Thread August Oktobar
why I cannot compile this (FPC 2.7.1)

type
  tproc_type=procedure;

  procedure xxx;
  begin
  end;

   procedure yyy;
  begin
  end;

  const
type_list:array [0..1]of tproc_type=(@xxx,@yyy);

   const
  one_type: tproc_type=type_list[0] ;   <--- illegal expression
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Yet again Objects auto destruction

2013-04-20 Thread August Oktobar
Great idea!


On Thu, Apr 18, 2013 at 3:55 PM, Zaher Dirkey  wrote:

> I think it is not the first time this topic was opened, but still think we
> need when using object to have automatically destructor called by compiler
> when the object freed
>
> TmyObject = object
>FSQL: TStringList;
>constructor Init(SQL: string);
>destructor Free;
> end;
>
> constructor TmyObject.Init(SQL: string);
> begin
>   FSQL:=TStringList.Create;
> end;
>
> destructor TmyObject.Free;
> begin
>   FSQL.Free;
> end;
>
> Here in the example we can call init manually and it is not a problem,
> because it is always we know who is create this object.
> But free or destroy can not call it manually, we not know who will kill
> that object first, because many of another object assigned to it.
>
> Ref
> http://lists.freepascal.org/lists/fpc-pascal/2006-August/011626.html
>
> I know about Interfaces but i hate use it,
> All just we need new feature to call "destroy" when freeing the object.
>
> Best Regards
> Zaher Dirkey
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal